On Tuesday, September 21, 2021 at 10:52:04 PM UTC-7 [email protected] wrote:
> I tried to experiment with
> `[enlist{!!tags}sort[]join[,]match[playground,rust,test,two words]]` and
> uploaded the results. `[enlist{!!tags}sort[]join[,]]` returns the same
> thing as `[enlist{!!tags}sort[]join[,]match[playground,rust,test,two
> words]]` from my testing, so I'm not exactly sure what the match is for.
>
The filter I provided assumes that it is contained within a tiddler that
has tags. The purpose of the `match[playground,rust,test,two words]`
filter syntax is to test the result of the filter to see if it has all the
desired tags.
However... you can't use $:/AdvancedSearch to return "a list of tiddlers
with exactly these 4 tags", because that needs two nested $list widgets,
where the outer $list gets all the tiddler titles, and the inner $list
checks each tiddler for the matching set of tags. Thus, to list all
tiddlers that have the desired tags, you can put the following into a
tiddler:
```
<$list filter="[all[]]">
<$list
filter="[enlist{!!tags}sort[]join[,]match[playground,rust,test,two words]]"
variable="has_matching_tags">
<$link/><br>
</$list>
</$list>
```
Note the use of the variable in the inner $list. This preserves the value
of "currentTiddler" that is assigned by the outer $list so that it can be
output by the $link widget.
-e
--
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/fb36cc56-d93d-4d63-9d8a-164844c12c42n%40googlegroups.com.