[TW5] How to get all tiddlers not tagged by a list of tags?

89 views
Skip to first unread message

Jeff Vance

unread,
Feb 21, 2017, 7:55:17 AM2/21/17
to TiddlyWiki
I'm a little stuck trying to create a filter that will take a list of tags, then retrieve all the tiddlers that are missing ALL of those tags. Is this possible?  I've been going through the list of possible filter operators and I can't seem to find a way to do it.  !tag works with just a single tag.  The "tagging" operator seems like it might have worked if it supported a negate (!) operation, but it apparently it doesn't.  "untagged" doesn't work because I want it to allow some tags to exist in the result, just not the ones that are specifically in this list.  Any ideas?


Jeff Vance

unread,
Feb 21, 2017, 8:18:33 AM2/21/17
to TiddlyWiki

A quick example to clarify what I'm trying to do:  What I'd really like is to do something like this.

  • I have a series of "status" tags, such as To Do, Done, Obsolete, Review.  The tiddlers for each of these tags are tagged "status".
  • So I can get a list of all "status" tags with tag[status].
  • Now, I want a list of all the tiddlers that are tagged by the current title tiddler, but missing a status tag. Something maybe like this?  Actually....maybe this is the solution I'm looking for?
tag[status]] -tagging[]tag{!!title}


Jeff Vance

unread,
Feb 21, 2017, 8:54:14 AM2/21/17
to TiddlyWiki

Ah!  I think I figured it out!  I kept experimenting and I came up with this:

<<list-links "[tag{!!title}] -[tag[status]tagging[]]">>

Looks like it's working by doing 2 runs, the first to get everything tagged by the current tiddler then removing the results of another run that gets everything tagged with a status tag.  I'm not sure if there is a more efficient way, but I guess this works for now!


Reply all
Reply to author
Forward
0 new messages