opens the tiddlers "Test1" and "Test2" as expected. However, when the filter is parameterized as follows:
\define openTiddlers(tf)
<$button>
<$list filter=$tf$>
<$action-navigate $to={{!!title}}/>
</$list>
Open tiddlers
</$button>
\end
<<openTiddlers "Test1 Test2">>
only "Test1" is opened. Variations such as <<openTiddlers "[[Test1]] [[Test2]]">> and <<openTiddlers """Test1 Test2""">> don't work either.
I tried to add parentheses around the parameter:
\define openTiddlers(tf)
<$button>
<$list filter=$(tf)$>
<$action-navigate $to={{!!title}}/>
</$list>
Open tiddlers
</$button>
\end
which strangely enough opens the tiddler "true". (Why would "$(tf)$" evaluate to "true"?) Even worse, when I try to use instead angle brackets:
\define openTiddlers(tf)
<$button>
<$list filter=<<tf>> >
<$action-navigate $to={{!!title}}/>
</$list>
Open tiddlers
</$button>
\end
seemingly every single tiddler in the Wiki is opened, and eventually it crashes completely.
Could anyone give me a hint as to what I'm doing wrong? I would also greatly appreciate an explanation of what is going on here, since I evidently don't grasp the WikiText semantics yet.
Best regards,
Linus
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/28276197-2738-4e21-9300-f658364993ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/ShOTV6i1j8Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJbRBLLyU9x1-kJ7pjX8K_c3G2EjT%2B2dc82JUjt-3AmQsA%40mail.gmail.com.
I want to do something similar, but instead of opening tiddlers, I want to navigate to a selected one from among the filtered alternatives.
<$select tiddler='$:/generated-list-demo-state'>
<$list filter="[match{!!match}]">
<option><$view field='title'/></option>
</$list>
</$select>
but how to I get the selected option to become the current tiddler?