Filter question: all tiddlers with that contain the current tiddler's title in their text field

231 views
Skip to first unread message

David Gifford

unread,
Feb 25, 2021, 7:11:14 PM2/25/21
to TiddlyWiki

Hi all

I want to try out a list filter with all tiddlers with that contain the current tiddler's title in their text field

I tried

<$list filter='[text[<currentTiddler>]]'>

and similar options, but they did not cause the tiddler that met that criteria to appear in the list.

What am I doing wrong? And please, just the filter, not a long define / end thing that needs to go at the top of the tiddlers where I want that. There has to be a filter for this.

Thanks in advance, Dave

Ray Vermey

unread,
Feb 25, 2021, 7:15:41 PM2/25/21
to tiddl...@googlegroups.com
Can't you omit the [text] part??

Op vr 26 feb. 2021 om 01:11 schreef David Gifford <dgif...@crcna.org>:
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/96c4064c-7f90-473f-ba2d-a0299156252fn%40googlegroups.com.

David Gifford

unread,
Feb 25, 2021, 7:25:20 PM2/25/21
to TiddlyWiki
I did, but got a recursive error since it was including the current tiddler.

Ray Vermey

unread,
Feb 25, 2021, 7:35:50 PM2/25/21
to tiddl...@googlegroups.com
I am also learning and trying to help.
So you have this tiddler called for instance "Walking"

And now you want to list the tiddlers who have Walking in their text field? The field you can add below your tidder so to speak??

Ray

Op vr 26 feb. 2021 om 01:25 schreef David Gifford <dgif...@crcna.org>:

David Gifford

unread,
Feb 25, 2021, 7:37:49 PM2/25/21
to tiddl...@googlegroups.com
Yes, transclude them.

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/tVRIhfJYJ68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9BtmsSUwzZALgWTPLjO_b%3DT1DvkBaoupKd%3DO6axQE5mmQ%40mail.gmail.com.

Ray Vermey

unread,
Feb 25, 2021, 7:49:18 PM2/25/21
to tiddl...@googlegroups.com
Hmm trying but also not successful.
Maybe someone else knows what the exact syntax is...
Now time to sleep ;-)

Cheers

Ray

Op vr 26 feb. 2021 om 01:37 schreef David Gifford <dgif...@crcna.org>:

Mark S.

unread,
Feb 25, 2021, 8:39:03 PM2/25/21
to TiddlyWiki
Since filter operators don't have a T operator (except maybe in "reduce"), you need two list filters:

<$list filter="[all[tiddlers]]">
<$list filter="[<currentTiddler>search:text:literal<currentTiddler>]"/>
</$list>

dieg...@gmail.com

unread,
Feb 25, 2021, 8:40:42 PM2/25/21
to TiddlyWiki
I came up with the following:


{{{ [!is[system]regexp:text<currentTiddler>] }}}

David's is this what you meant?

Note: it doesnt work in draft/edit preview mode as the value of currentTiddler then is "Draft of"... but once you save it, it should work.

dieg...@gmail.com

unread,
Feb 25, 2021, 9:13:54 PM2/25/21
to TiddlyWiki
David,

I see you wanted a list widget. How about this:

<$list filter="[!is[system]regexp:text<storyTiddler>]">

</$list>

Eric Shulman

unread,
Feb 25, 2021, 10:26:57 PM2/25/21
to TiddlyWiki
On Thursday, February 25, 2021 at 4:11:14 PM UTC-8 David Gifford wrote:
a list filter with all tiddlers that contain the current tiddler's title in their text field

<$list filter="[search:text:literal<currentTiddler>]"><$link /><br></$list>

enjoy,
-e

David Gifford

unread,
Feb 25, 2021, 11:22:14 PM2/25/21
to tiddl...@googlegroups.com
Thanks Eric!




--
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/tVRIhfJYJ68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

dieg...@gmail.com

unread,
Feb 26, 2021, 10:06:20 AM2/26/21
to TiddlyWiki
Eric,

To help my learn, was there something wrong with mine?

Eric Shulman

unread,
Feb 26, 2021, 11:29:05 AM2/26/21
to TiddlyWiki
On Friday, February 26, 2021 at 7:06:20 AM UTC-8 dieg...@gmail.com wrote:
To help my learn, was there something wrong with mine?

The regexp[] filter finds *pattern* matches.  If the tiddler's title contains any special regular expression syntax (such as ".") then it can match text other than the exact title.

For example:
title = "Foo.Bar" would also match "FootBar" and "FoolBar"

-e

David Gifford

unread,
Feb 26, 2021, 1:14:33 PM2/26/21
to TiddlyWiki
The email reply didn't send yesterday. Thank you, Mark!

On Thursday, February 25, 2021 at 7:39:03 PM UTC-6 Mark S. wrote:

David Gifford

unread,
Feb 26, 2021, 1:14:56 PM2/26/21
to TiddlyWiki
Thank you Diego!

On Thursday, February 25, 2021 at 7:40:42 PM UTC-6 dieg...@gmail.com wrote:

dieg...@gmail.com

unread,
Feb 26, 2021, 2:10:21 PM2/26/21
to TiddlyWiki
Ah - I knew this about regexp but didnt think about it all here. Thanks Eric!

Mark S.

unread,
Feb 26, 2021, 3:19:49 PM2/26/21
to TiddlyWiki
Apparently I misunderstood the question -- I thought you wanted every tiddler with contents eponymously associated with their title. 
Reply all
Reply to author
Forward
0 new messages