How to list tiddlers with titles containing certain strings?

935 views
Skip to first unread message

Jimmy Chan

unread,
Jan 7, 2014, 6:12:50 AM1/7/14
to tiddl...@googlegroups.com
I would like to list tiddlers with titles containing the string "abc".

However, it seems wildcard is not supported. For example, this doesn't work: <$list filter="[title[*abc*]]">

On the other hand the search[] operator seems to work with whole tiddler only and cannot be combined with the title[] operator. I tried this but didn't work either: <$list filter="[[title[search[abc]]">

Is there a way to do what I want? Thanks a lot.






Stephan Hradek

unread,
Jan 7, 2014, 6:52:59 AM1/7/14
to tiddl...@googlegroups.com
At the moment there is just the "prefix" filter so "prefix[abc]" can be used.

Jeremy Ruston

unread,
Jan 7, 2014, 9:21:26 AM1/7/14
to TiddlyWiki
Hi Jimmy

As Stephan says, there isn't yet a filter operator that can do wildcard searching. There is a proposal to add a regexp based search, which I think would do what you want.

Best wishes

Jeremy


On Tue, Jan 7, 2014 at 11:52 AM, Stephan Hradek <stephan...@gmail.com> wrote:
At the moment there is just the "prefix" filter so "prefix[abc]" can be used.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Jimmy Chan

unread,
Jan 7, 2014, 9:37:28 AM1/7/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Thanks Stephan and Jeremy. Nice to hear that regex may be implemented in the future. That's even better than wildcard.

Cheers,
Jimmy

Stephan Hradek

unread,
Jan 10, 2014, 5:46:53 AM1/10/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
I've implemented a regular expression search which you might want to test. See tiddler RegExpFilter on http://tiddlystuff.tiddlyspot.com/

Drag the 2 tiddlers


to your wiki, save and reload.
Reply all
Reply to author
Forward
0 new messages