Eric, Thanks, I will explore your suggestion. And there is little doubt in a fresh tiddlywki this will serve me well.
Unfortunately my current and mature tiddlyWiki I have used tags beginning with characters that are valid in tags and titles such as "." "@", "-", ":" these had the added advantage appearing together in the list of tags. However as raised in previous posts MatchTags does not handle them well. I have also found TiddlerListMacro's "-tag,tag,tag" format easyer to use, espacialy since I can use the form "-tag,tag,tag,$1" thus I can make a list of tiddlers using say "-=closed,-=inactive,.projecttask,$1" where $1 = ProjectNameTag, that is, list only active project tasks for ProjectNameTag. But if I wanted I could quite easily make $1 = "ProjectNameTag,-anotherTag"; that is the matching process is extensible. Thanks Tony TonyM If you have not found an easy way to do it with TiddlyWiki, you have missed something. www.tiddlywiki.com On Sat, Aug 15, 2009 at 07:39, Eric Shulman <[email protected]> wrote: > > > list urgent task tiddlers not inactive or closed > > list active projectTask tiddlers not inactive or closed > > etc... > > This provides a few lists of tiddlers that require attention. > > I want to automatically tag each of the tiddlers that come up in each > list > > say with the tag "selected", ideally this happend when I open the tiddler > > "ShowItems". > > http://www.TiddlyTools.com/#MatchTagsPlugin > extends the core's tag filtering mechanism to permit use of compound > boolean "tag expressions" (AND/OR/NOT, with nested parentheses as > needed). > > http://www.TiddlyTools.com/#InlineJavascriptPlugin > makes it easy to embed programmed logic to perform actions or generate > dynamic output whenever a tiddler is rendered. > > For your particular use-case, you could use an inline script to > retrieve an array of the desired tiddlers via the MatchTagPlugin- > enhanced store.filterTiddlers('[tag[...]]') function, and then set the > desired tag on each of those tiddlers by applying the core's > store.setTiddlerTag(title,flag,tag) function. Something like this: > > <script> > var tids=store.filterTiddlers('[tag[urgent and not (inactive or > closed)]]'); > for (var t=0; t<tids.length; t++) store.setTiddlerTag(tids > [t].title,true,'selected'); > </script> > > 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 -~----------~----~----~----~------~----~------~--~---

