> >    http://www.TiddlyTools.com/#MatchTagsPlugin
>
> Undeniably a wonderful plugin - but are you saying that it enables
> "chains for subsequent filtering", as I assume FND means? Can a first
> set of filtered tiddlers be inserted as an argument for a second
> filter ("nested filtering")?

Yes, you can apply "progressive filtering" via MatchTagsPlugin... not
directly via <<matchTgs>> or through some TW-native syntax, but rather
by using some simple custom script code to invoke the MatchTagsPlugin-
defined function:
   store.getMatchingTiddlers(tagexpr,sortfield,tiddlers)

For example, using InlineJavascriptPlugin (along with MatchTagsPlugin,
of course), you can embed something like the following script, which
will output a bullet list of matching tiddler titles:

<script>
   var tids=store.getMatchingTiddlers("foo or bar or baz");
   tids=store.getMatchingTiddlers("mumble and frotz",null,tids);
   tids=store.getMatchingTiddlers("gronk or (snork and snerfle and
plurmb)",null,tids);
   var out=[]; for (var i=0;i<tids.length;i++) out.push("* [["+tids
[i].title+"]]");
   return out.join('\n');
</script>

Note how the 2nd and 3rd calls includes the 'tids' parameter... this
is the progressive filtering.

The first call to getMatchingTiddlers() defaults to filtering from
amongst all tiddlers.  Then, the subsequent calls to
getMatchingTiddlers() pass in the 'tids' returned by the prior call,
progressively filtering the results, which are then assembed and
formatted for output as a bullet list.

enjoy,
-e







processes boolean expressions for tag matching
//    sortfield (optional) sets sort order for tiddlers -
default=title
//    tiddlers (optional) use alternative set of tiddlers (instead of
current store)
TiddlyWiki.prototype.getMatchingTiddlers = function()


>
> Thank you!
>
> (P.S On the road and will probably not be able to reply to eventual
> input in this thread for a few days)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to