Filter op to convert string into titles?

33 views
Skip to first unread message

Mat

unread,
Apr 9, 2017, 6:07:22 AM4/9/17
to TiddlyWiki
Filter operator questions

<$list filter="a b c" variable="x">
Match:<$list filter="[
<x>prefix[b]]"/>
</$list>

Match: Match:
b Match:

As seen, the output "Match" appears for all three variables where I only want the single "Match:b" as output.

To prevent this, I figure I can use the SetWidget

<$set filter="a b c" name="x">
Match:<$list filter="[
<x>prefix[b]]"/>
</$set>

Match:

...but this makes x be a full "a b c" string, so no match.

Is there an "economic" way to convert a string into tiddler titles? Ideally some direct filter operator to just put like so

Match:<$list filter="[LISTIFY<x>prefix[b]]"/>

Must I use a regexp? It just seems like a basic problem. Or maybe I'm going about it the wrong way to begin with?


Side Question

Even more basic; How should I actually make the match comparison for the variable? The filter should only give true if <x> is fully equal to "b", not merely prefixed "b" as in my example.

Match:<$list filter="[<x>EXACTMATCH[b]]"/>


Thanx

<:-)

Jeremy Ruston

unread,
Apr 9, 2017, 6:15:48 AM4/9/17
to tiddl...@googlegroups.com
Hi Mat

See the new "enlist" operator in the 5.1.14 prerelease,

Best wishes

--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/561b7ea8-bd21-4888-9555-85b8877e9f56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mat

unread,
Apr 9, 2017, 7:06:39 AM4/9/17
to TiddlyWiki
Hahaaa! Excellent!

Thanks Jeremy!

<:-)
Reply all
Reply to author
Forward
0 new messages