Over at TiddlyTalk, in the A list containing tiddlers with the same tags as 
current tiddler? 
<https://talk.tiddlywiki.org/t/a-list-containing-tiddlers-with-the-same-tags-as-current-tiddler/907>
 thread, 
I had posted the following as my approach:

<$vars theseTags={{{ [<currentTiddler>tags[]sort[]join[,]] }}} >

<$list filter="[all[tiddlers]] :filter[tags[]sort[]join[,]match<theseTags>] 
+[!match<currentTiddler>]">
<$link/>
</$list>

</$vars>

That got me thinking: what if we wanted a list containing tiddlers with the 
same tags as current tiddler + 0-to-more tags ?

Say we also had Tiddler E with tags "topic a", "topic aa" and "topic b", 
and we wanted that to also be included when we look at Tiddler A?

Modified version of the code above:

<$vars theseTags={{{ [<currentTiddler>tags[]sort[]join[*]] }}} >

<$list filter="[all[tiddlers]] :filter[tags[]sort[]join[]regexp<theseTags>] 
+[!match<currentTiddler>]">
<$link/>
</$list>

</$vars>

Attached file has Tiddlers A-E, A being the one with the goodies.  Download 
and drag into any TiddlyWiki (TiddlyWiki.com!)

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c423c756-7895-41da-82f9-27d398c3280fn%40googlegroups.com.

Attachment: TiddlersAtoE.json
Description: application/json

Reply via email to