help with filter expression

50 views
Skip to first unread message

Rustem

unread,
Apr 13, 2015, 6:10:38 PM4/13/15
to tiddl...@googlegroups.com
I have this filter expression that returns all tiddlers tagged with the current tiddler, except those tagged with "Archive".

  [<currentTiddler>tagging[]!tag[Archive]]

I'd like to build filters for each of these scenarios:
a) If the current tiddler is tagged "Archive", return all tiddlers it is tagging, archived or not.
b) If the current tiddler is tagged "Archive", return only tiddlers it is tagging that are also archived.

Thanks!

Eric Shulman

unread,
Apr 13, 2015, 6:23:02 PM4/13/15
to tiddl...@googlegroups.com
On Monday, April 13, 2015 at 3:10:38 PM UTC-7, Rustem wrote:
I have this filter expression that returns all tiddlers tagged with the current tiddler, except those tagged with "Archive".
  [<currentTiddler>tagging[]!tag[Archive]]
I'd like to build filters for each of these scenarios:
a) If the current tiddler is tagged "Archive", return all tiddlers it is tagging, archived or not.

Try this:
[<currentTiddler>tag[Archive]tagging[]]
 
b) If the current tiddler is tagged "Archive", return only tiddlers it is tagging that are also archived.

and this:
[<currentTiddler>tag[Archive]tagging[]tag[Archive]]

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Rustem

unread,
Apr 13, 2015, 6:29:02 PM4/13/15
to tiddl...@googlegroups.com
I meant a more complex condition, like this:

a) Return all tiddlers tagged with the current tiddler, except those tagged with "Archive". BUT, If the current tiddler is tagged "Archive", return all tiddlers it is tagging, archived or not.

b) Return all tiddlers tagged with the current tiddler, except those tagged with "Archive". BUT, If the current tiddler is tagged "Archive", return only tiddlers it is tagging that are also archived.

:)

Jed Carty

unread,
Apr 13, 2015, 6:33:29 PM4/13/15
to tiddl...@googlegroups.com
These should work:

a) [is[current]tag[Archive]tagging[]]

b) [is[current]tag[Archive]tagging[]tag[Archive]]

assuming that archived tiddlers are identified by the tag Archive

Jed Carty

unread,
Apr 13, 2015, 6:39:44 PM4/13/15
to tiddl...@googlegroups.com
That is a bit different.

a) [is[current]!tag[Archive]tagging[]!tag[Archive]][is[current]tag[Archive]tagging[]]

b) [is[current]tagging[]!tag[Archive]][is[current]tag[Archive]tagging[]tag[Archive]]

sorry, I was testing and didn't see your update for my last post.

Jed Carty

unread,
Apr 13, 2015, 6:44:39 PM4/13/15
to tiddl...@googlegroups.com
Sorry, for b I missed an operator, it should be

[is[current]!tag[Archive]tagging[]!tag[Archive]][is[current]tag[Archive]tagging[]tag[Archive]]


Rustem

unread,
Apr 13, 2015, 6:50:22 PM4/13/15
to tiddl...@googlegroups.com
a) Return all tiddlers tagged with the current tiddler, except those tagged with "Archive". BUT, If the current tiddler is tagged "Archive", return all tiddlers it is tagging, archived or not.

I got this one, just combine the two with a space in between

  [<currentTiddler>tagging[]!tag[Archive]] [<currentTiddler>tag[Archive]tagging[]]
 
b) Return all tiddlers tagged with the current tiddler, except those tagged with "Archive". BUT, If the current tiddler is tagged "Archive", return only tiddlers it is tagging that are also archived.

Same doesn't work here, still struggling. Might not be possible in a single filter expression.

Rustem

unread,
Apr 13, 2015, 6:59:17 PM4/13/15
to tiddl...@googlegroups.com
Yep, that did it. Thank you! Kinda obvious, in hindsight.

(Same here, didn't see your response until I posted another one myself.)
Reply all
Reply to author
Forward
0 new messages