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
list-field to actually check against.
Perhaps...
"[contains:some-list-field:any{these!!listed-items}]"
"[contains:tags:all{my-special!!tags}]"
Since one of *any* or *all* will be the default, we can skip the
"secondary" suffix for that.
I suspect *any* to be the more common use case, so:
"[contains:tags{any-of!!these-tags}]"
I would be fine with a secondary suffix, it's just as good as any other
suffix. But, if we really want the duplication we could also have a
separate filter:
"[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}]"
>
I would want to avoid this syntax altogether as it is difficult, if not
impossible, to combine it with any preceding or subsequent filters. For
one, it would have to always be at the beginning of a filter expression.
I have updated the issue on GitHub to cover a more general list-matching
approach accordingly:
renamed: *#1216 filter operator for "list contains any or all items of
another list"*
https://github.com/Jermolene/TiddlyWiki5/issues/1216
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/67f9d64c-69ce-41ef-84b4-4465814ae891%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.