Thank you for your reply.
Say I have a project tiddler called ProjName and a task tiddler called
ProjName/Research.
I tried using the removeprefix filter to list tasks in the project tiddler
without displaying their prefix. This way I could avoid adding a caption
field every time I add a new task.
At first I tried:
<$list filter="[tag[task]removeprefix{!!title}removeprefix[/]]">
<div>
<$checkbox tag="done"> ~~<$link to={{!!title}}><$view
field="title"/></$link>~~</$checkbox>
</div>
</$list>
This displays the name I want but obviously doesn't link to the original
tiddler title, it links to the title with the prefix removed.
What is the correct way to use removeprefix in this context?
Thanks again for your help.
On Saturday, May 25, 2019 at 9:46:03 AM UTC+1, PMario wrote:
>
> Hi Ed,
>
> On Saturday, May 25, 2019 at 2:30:16 AM UTC+2, Ed Edson wrote:
> ...
>
>> I hope this is an appropriate question for this forum.
>>
>
> :) it is!
>
>
>> What is a good way to deal with projects that contain tasks with the same
>> name?
>>
>> For example, many of my projects involve doing a bit of research first,
>> so I will create a task called "Research". The problem is that TiddlyWiki
>> requires unique titles. In this case I cannot reuse the "Research" Tiddler
>> as the content will be different for each project.
>>
>> Does anyone have a good system that avoids this problem?
>>
>
> TW allows you to use very powerful filters.
>
> So 1 possibility (just an idea) would be to add a prefix. eg:
> pr/01/Research
> We call this format with / ... "namespace". ... So pr/01/Research is a
> tiddler in the namespace: pr/01/
>
> If you create a tiddler *title*: pr/01/Research
> Add a field named: *caption* value: Research
>
> If you create a tiddler *title*: pr/02/Research
> Add a field named: *caption* value: Research
>
> Create a new tiddler *title*: pr/01
> *caption*: <you name it>
>
> content for pr/01
>
> <<list-links filter:"[prefix[pr/01/]]">>
>
> <<list-links filter:"[prefix<currentTiddler>]-[all[current]]">>
>
>
> <$macrocall $name=tree prefix="pr/"/>
>
> - The first line creates a list of all tiddlers prefixed with pr/01/
> where the name pr/01 is hardcoded.
> - The second line creates the same list, but uses the tiddler titles as
> prefix value.
> - The third macro call, calls the tree macro
> <https://tiddlywiki.com/#tree%20Macro%20(Examples):%5B%5Btree%20Macro%20(Examples)%5D%5D%20%5B%5Btree%20Macro%5D%5D>,
>
> which is part of the core. ... Which gives a nice overview basically for
> free.
>
> As mentioned. This is only 1 possibility to deal with unique tiddler
> titles. ... We use the *caption *field here.
>
> Also have a closer look at: TaskManagementDraggable
> <https://tiddlywiki.com/#TaskManagementExample%20(Draggable)>.
>
> have fun!
> mario
> PS: more info about fields <https://tiddlywiki.com/#TiddlerFields>.
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/38370c2a-3287-45a4-a22a-bd8fea9559c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.