Hi,
Thank you so much !
Would have taken me weeks to figure it out by myself...
For the record for anyone wondering here is the code:
''Same exact tags as this tiddler:''
<$vars theseTags={{{ [<currentTiddler>tags[]sort[]join[,]] }}} >
<$list filter="[all[tiddlers]] :filter[tags[]sort[]join[,]match<theseTags>]
+[!match<currentTiddler>]">
<$link/>
</$list>
</$vars>
''Same exact tags as this tiddler + other tags if any:''
<$vars theseTags={{{ [<currentTiddler>tags[]sort[]join[*]] }}} >
<$list filter="[all[tiddlers]] :filter[tags[]sort[]join[]regexp<theseTags>]
+[!match<currentTiddler>]">
<$link/>
</$list>
</$vars>
Thanks again,
Eric
On Sunday, October 17, 2021 at 6:22:31 PM UTC+4 [email protected] wrote:
> Hello Eric,
>
> Download the attached and drag it into TiddlyWiki.com.
>
> Cheers !
>
>
>
> On Sunday, October 17, 2021 at 7:32:35 AM UTC-3 Eric N wrote:
>
>> Hi all,
>>
>> I am looking for a way to select all the tiddlers that contain *at least
>> the same tags* as the current tiddler.
>>
>> Say the current tiddler contains tags A & B, and other tiddlers contain:
>> - C D E
>> - A D E
>> - B D E
>> - A B
>> - A B C D E,
>>
>> the filter expression would return only the last two ones.
>>
>> And the number of tags in the current tiddler may vary, so that cannot be
>> hard coded in the filter expression.
>>
>> Any idea ?
>>
>> Best,
>> Eric
>>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/9ec3cb94-e935-4b2d-8ac4-1e4b03a4e52cn%40googlegroups.com.