<$list filter="[tag[TestProject]]"></$list>
TestTask1
TestTask2
<$list filter="[tag[$(title)$]]"></$list>
<$list filter="[tag<currentTiddler>]"></$list>
<$list filter="[tag{!!title}]"></$list>
<$list filter="[tag{!!title}]"/><$list filter="[{!!title}tagging[]]"/>
<$list filter="[all[current]tagging[]]"/>
<$list filter="[tag<currentTiddler>]"/><$list filter="[<currentTiddler>tagging[]]"/>
<$list filter="[<currentTiddler>listed[tags]]"/><$list filter="[{!!title}listed[tags]]"/>
| <$list filter="[tag[$(title)$]]">
| </$list>
| and
| <$list filter="[tag<currentTiddler>]">
| </$list>
| and
| <$list filter="[tag{!!title}]">
| </$list>
| all give nothing.
I think I may have figured out the problem. If you take that middle form, where the filter is "[tag<currentTiddler>]", but you don't leave at least one line (even an empty one) between the opening and closing <$list> tags, the list will render nothing. If your closing tag is on the very next line from the opening tag, that may be the cause.
Actually, I think Devin may mean the preview panel that's part of the Edit Template. If you're editing tiddler "Foo" and you click the "show preview" button, you'll see a pane where the content is rendered with "Draft of 'Foo'" as the currentTiddler.
I mention this because I find this irksome too when I want to see the effect of changes right away, and I've been working on a filter expression which would return "Foo" for both "Foo" and "Draft of 'Foo'". I think I have a final version here (I've put each of the three component runs on its own line for clarity:
[title<currentTiddler>]
-[prefix[Draft of ']suffix[']]
[title<currentTiddler>removeprefix[Draft of ']removesuffix[']]
(Obviously, this screams out to be made a macro to avoid typing all that out repeatedly.)
For Devin's purposes, a fourth run appended to the expression, "+[tagging[]]", turns the input "Foo" into the list of tiddlers tagged with "Foo".
\define currentTitle()
<$list filter="[<storyTiddler>get[draft.of]] [<storyTiddler>!has[draft.of]]">
</$list>
\end<<currentTitle>><$list filter="[tag<currentTitle>]"/>
<$list filter="[<currentTitle>tagging[]]"/>
<$list filter="[<currentTitle>listed[tags]]"/>I tried this -- it doesn't work :-(I created a global macro:\define currentTitle()
<$list filter="[<storyTiddler>get[draft.of]] [<storyTiddler>!has[draft.of]]">
</$list>
\endThe result of a simple macrocall is as expected in both view and edit mode:<<currentTitle>>However, when I try this, there is no output in either view or edit mode:<$list filter="[tag<currentTitle>]"/>
<$list filter="[<currentTitle>tagging[]]"/>
<$list filter="[<currentTitle>listed[tags]]"/>Anyone know why?
<$list filter="[<storyTiddler>get[draft.of]] [<storyTiddler>!has[draft.of]]">
</$list><$list filter="[tag[<$list filter="[<storyTiddler>get[draft.of]] [<storyTiddler>!has[draft.of]]">
</$list>]]"/><$set name="target" filter="[<storyTiddler>get[draft.of]] [<storyTiddler>!has[draft.of]]">
<$list filter="[tag<target>]"/>
</$set>
\define tagged()
<$set name="target" filter="[<storyTiddler>get[draft.of]] [<storyTiddler>!has[draft.of]]">
<$list filter="[<target>tagging[]]"/>
</$set>
\end<<tagged>>