> 2.1. The first one is about set algebra. We can make a filter that
> sets a set of tiddlers with tag1 or tag2:
> <<list filter "[tag[transcluded]] [tag[examples]]">> (in TW v2.6.1)
> but is there a syntax for defining an intersection of sets (tiddler
> with tag1 and tag2)?

For full Boolean logic (and/or/not plus parens as needed), you can
use:
   http://www.TiddlyTools.com/#MatchTagsPlugin

It extends the core's syntax so that instead of using a single tag
value:
   [tag[tagvalue]]
you can use a Boolean tag 'expression':
   [tag[tag1 OR tag2 OR (tag3 AND NOT tag4)]]

The plugin also provides a public API:
   store.getMatchingTiddlers(expr,sort,tids)
where:
   "expr" is a text string containing the boolean tag expression
   "sort" is a tiddler fieldname to sort by (default="title")
   "tids" is an array of tiddlers to search (default=search ALL)

note: both "sort" and "tids" are OPTIONAL arguments.  Most of the
time, these are omitted, and you can simply write:
   var result=store.getMatchingTiddlers(expr)
as in:
   var result=store.getMatchingTiddlers("tag1 or tag2 and not tag3")

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to