TW5 Is there a way to filter for tiddlers with fields that contain a string of text?

183 views
Skip to first unread message

Aaron Haslem

unread,
Jun 4, 2017, 12:48:12 AM6/4/17
to TiddlyWiki
I have tiddlers with the field 1.0.5reghost:  in this field I have "[[Hostess 1|The Hostest with the Mostest]]"
This way, when I display the field in the tiddler it only shows Hostess 1 but links to the Tiddler The Hostest with the Mostest.

My next step is to use the List Filter= to display all Tiddlers whose field 1.0.5reghost contains "Hostess 1"

<$list filter="[field:1.0.5reghost[?Hostess 1?]sort[1.0.5reghost]]">

I am assuming "?" act as boolean characters allowing for text to be before and after " Hostess 1"  but it doesn't work.

Is the "filter" looking for exact text within the brackets? thus it rejects any tiddlers that do not have the exact text.  In this case, any tiddler that does not have "[[?... is rejected and does not get included in the displayed list.

Is there a boolean character or way to format a filter to look for the string of text "Hostess 1" within a longer string of text.

The "In Filter" Search within Advanced Search Returns what I am looking for.  If I put "Hostess 1" in the In Field Advanced Search it returns a list of Tiddlers that contain this text.  How do I format a filter to search a field and return the same list?

Mat

unread,
Jun 4, 2017, 5:04:33 AM6/4/17
to TiddlyWiki
Hi Aaron

You need to use the regex filter operator for such things.

<:-)

Aaron Haslem

unread,
Jun 5, 2017, 4:14:15 PM6/5/17
to TiddlyWiki


Took me a few tries to figure out the structure, but that works great.  Exactly what I was looking for.  Thanks Mat.

Stefan Spycher

unread,
Oct 27, 2017, 7:57:26 AM10/27/17
to TiddlyWiki
I'm interested in the same. @Aaron, can you post your solution?

Thanks

Stefan

TonyM

unread,
Oct 27, 2017, 9:54:21 PM10/27/17
to TiddlyWiki
Stefan,

There are many different ways to do this with special macros and techniques to extract text available.

But their is a core search operator (used in filters), http://tiddlywiki.com/#search%20Operator and examples

Tony
Reply all
Reply to author
Forward
0 new messages