> 1 might be acceptable except that there are some significant problems > with the current implementation. The most notable is that in one > filter string, two filters result in a union of the found tiddlers, > not the intersection. So if you: > > /bags/system/tiddlers?filter=[tag[systemConfig]][tag[foobar]] > > you get all the tiddlers that are tagged systemConfig and all the > tiddlers that are tagged foobar. This doesn't seem aligned with the > intent, especially since it is possible to get that result, in a > recipe, by listing the same bag twice: > > /bags/system/tiddlers?filter=[tag[foobar]] > /bags/system/tiddlers?filter=[tag[systemConfig]]
I've never liked the TW filter syntax provided by the core. It uses a unique syntax and semantics that, as you've observed, don't necessarily jibe with what people expect. I (and many others) prefer using the well-defined syntax of Boolean logic instead. That's why I wrote: http://www.TiddlyTools.com/#MatchTagsPlugin which extends the TW filter syntax so that instead of using a simple tag value, you can use of any combination tag values joined with boolean operators (AND, OR, NOT) and nested parentheses, e.g.: [tag[foobar and systemConfig]] OR [tag[(foobar or (mumble and systemConfig)) and not (frotz or gronk)]] Although it's not the same approach as TiddlyWeb is currently using, it does offer the advantage of using a syntax that is both well-known and sufficiently robust to support a full range of complex tiddler filtering expressions for virtually any use-case. Note: this extended support doesn't prevent use of the existing filter syntax, so you can still use [limit[nn]] and [sort[fieldname]] along with a boolean [tag[...]] expression, like this: [tag[foobar and systemConfig]][limit[5]][sort[-modified]] -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/TiddlyWikiDev?hl=en -~----------~----~----~----~------~----~------~--~---
