Operators are combined into runs that function as logically ANDed expressions by bashing them together and merging the square brackets:
[tag[one]] [tag[two]] ---> [tag[one]tag[two]]
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/hpPGVORx8UQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
[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 criteria first, and then return only those of the pre-filtered that are tagged either x or y?
Is this the only way:
[prefilter[]tag[x]] [prefilter[]tag[y]]
My “prefilter” is rather complex, I’d like to avoid repeating it unless there is no other way.
Thanks!
—R
[prefilter[]] -[!tag[x]!tag[y]] My “prefilter” is rather complex, I’d like to avoid repeating it unless there is no other way.
\define fx(pre, a, b, post) [$pre$$a$] [$pre$$b$] $post$
<$list filter=<<fx "tag[HelloThere]" "search[finding]" "search[never]" "+[sort[title]]">>/>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)
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]tagging[]tagging[]] }}}
...returns only tiddlers that have any action-status tag. Not sure how to do negation on that one.
Anyhow, there is a ticket I once opened for tag-any and tag-all:
#1216 tagged any, tagged all
https://github.com/Jermolene/TiddlyWiki5/issues/1216
What do you think about my last comment there?
Best wishes,
— tb
"[[prefilter[]] +[listhas:{mylist!!ofitems}]""[[my list]] [[of items]] +[tagging{my!!list}]"Perhaps this should be generalised for any list (not only the tags field.)
"[[prefilter[]] +[listhas:{mylist!!ofitems}]"
"[contains:some-list-field:any{these!!listed-items}]""[contains:tags:all{my-special!!tags}]""[contains:tags{any-of!!these-tags}]""[containsall:tags{all-of!!these-tags}]"The other is to first set up the list of items to search for, then specify the reference pointing to the list to be search (perhaps by generalising the tagging[] operator):"[[my list]] [[of items]] +[tagging{my!!list}]"
Sorry for the necrobump, but does anyone know how to do this in TiddlyWiki Classic?