list-link - how to filter based on more than one tag (boolean)

93 views
Skip to first unread message

blosscat

unread,
Mar 19, 2020, 4:32:32 PM3/19/20
to TiddlyWiki
You can use a filtered list-links to return a list of tagged tiddlers.

The syntax to return a list of tiddlers tagged with apples is:

<<list-links filter:"[tag[apples]]">>

What is the syntax to return a list of tiddlers tagged with apples AND pie?

Mark S.

unread,
Mar 19, 2020, 4:41:16 PM3/19/20
to TiddlyWiki
[tag[apples]]+[tag[pie]]

Mat

unread,
Mar 20, 2020, 12:16:12 AM3/20/20
to TiddlyWiki
Or just  "[tag[apples]tag[pie]]"

<:-)

blosscat

unread,
Mar 20, 2020, 1:02:45 AM3/20/20
to TiddlyWiki
Thank you, both! In time I'm sure I'll be wishing I could exclude a tag among several. For extra credit, what would the syntax be for apples NOT pie?

Jon

unread,
Mar 20, 2020, 2:26:05 AM3/20/20
to TiddlyWiki
I think that would be:

[tag[apples]!tag[pie]]

Regards
Jon

blosscat

unread,
Mar 20, 2020, 3:58:08 AM3/20/20
to TiddlyWiki
Hmm, an exclamation point (!) doesn't work as a NOT operator for me, but a hyphen (-) does.

[tag[apples]-tag[pie]]

Jon

unread,
Mar 20, 2020, 9:56:27 AM3/20/20
to TiddlyWiki
That's the standard format eg.[tag[Vegetarian]!tag[soup]serving[4]] as given in the docs.

Have you introduced another variable, perhaps a space?

Mark S.

unread,
Mar 20, 2020, 10:15:40 AM3/20/20
to TiddlyWiki
Hmm, you need to show your work.

[tag[apples]-tag[pie]]

gives the empty set for me, which is what I would expect. The hyphen only works BETWEEN filter runs.

Inside of a filter run, I would expect that TW would interpret "-tag" as it's own (non-existent) field with a (non-existent) value of "pie". That would give the empty set.
Reply all
Reply to author
Forward
0 new messages