Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-30 Thread Tobias Beer
Hi Matabele, Thanks for your valuable input. > Perhaps this should be generalised for any list (not only the tags field.) > I very much agree. The more general, the better. "[[prefilter[]] +[listhas:{mylist!!ofitems}]" > This would not be quite sufficient as we have not yet specified what l

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Matabele
Hi Tobias Perhaps this should be generalised for any list (not only the tags field.) As in, list all tiddlers that contain any of the items specified, in the targeted list. The syntax for this becomes problematic, as both the reference pointing to the field being targeted and the array of item

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Tobias Beer
Hi Rustem, One thing that may be helpful at some point is this. Consider a tiddler called *action* to which action tags are tagging, e.g. *#future*, *#next*, *#waiting*, *done*... and then there are tiddlers that tag to those individual status tags. This can already be done using: {{{ [[action

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Tobias Beer
Ah, must've been too late to not overlook that double negation. :D Best wishes, — tb -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googl

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Rustem
Matabele's way works. Thanks everyone. On Wednesday, October 28, 2015 at 10:07:59 PM UTC-7, Tobias Beer wrote: > > Hi Rustem, > >> My “prefilter” is rather complex, I’d like to avoid repeating it unless >> there is no other way. >> > I think your only option to streamline might be to use a macro

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-28 Thread Tobias Beer
Hi Rustem, > My “prefilter” is rather complex, I’d like to avoid repeating it unless > there is no other way. > I think your only option to streamline might be to use a macro(/variable) into which you stuff your prefilter so as to not repeat it: \define fx(prefilter, a, b) [$prefilter$$a$] [$pr

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-28 Thread Matabele
Hi This logic should work but I haven't tested this in TW -- remove all items from the prefiltered list that are not tagged x and not tagged y [prefilter[]] -[!tag[x]!tag[y]] regards On Thursday, 29 October 2015 03:27:40 UTC+2, Rustem wrote: > > [tag[x]] [tag[y]] --> all tiddlers tagged eith

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-28 Thread Rustem
> > [tag[x]] [tag[y]] --> all tiddlers tagged either x or y > (Old thread, I know, but ...) How do I filter SOME tiddlers tagged either x or y? Two runs separated by a space, as shown above, both take the list of all tiddlers as their input. But what if I want to pre-filter on some other cri

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2014-01-01 Thread David Gifford
Thanks guys! Dave On Wed, Jan 1, 2014 at 1:38 PM, Jeremy Ruston wrote: > Hi Dave > > I've added some more examples: > > > https://github.com/Jermolene/TiddlyWiki5/commit/4289367b7f9f0c9fa7ce8b974408053bed2b6a4b > > The short answer: > > [tag[x]tag[y]] --> all tiddlers tagged with both x and y >

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2014-01-01 Thread Jeremy Ruston
Hi Dave I've added some more examples: https://github.com/Jermolene/TiddlyWiki5/commit/4289367b7f9f0c9fa7ce8b974408053bed2b6a4b The short answer: [tag[x]tag[y]] --> all tiddlers tagged with both x and y [tag[x]] [tag[y]] --> all tiddlers tagged either x or y Best wishes Jeremy On Wed, Jan

[tw] TW5 list filter that returns tiddlers with both of two tags

2014-01-01 Thread David Gifford
Hi I think the TiddlerFilters tiddler needs an example of how to list tiddlers that are tagged with both x and y. All the examples, that I can see, return tiddlers tagged either x or y or both. But I would like to limit filtering to tiddlers tagged both x and y. Dave -- You received this me