Me and my interest in brain age games, I couldn’t help but play around with a filter to find all tiddlers that have all four specified tags, but only those four tags.
You’ll find three tiddlers in the attached json. Download the file, and drag into some TiddlyWiki instance (TiddlyWiki.com !) to take a gander.
There are all kinds of ways to go about doing this sort of thing, with some filter operators maybe better suited, but I find the result a bit easier for me to understand (more logical to me, or maybe more self-explanatory, because of the way my brain works, I suppose.) Maybe just a difference between top-down view vs bottom-up view or something …
It works fine. I tried to find a alternative, but I wasn’t lucky.
When I resee your filter, I remember about the multiple parameters in filter operator with commas (from last version, 5.1.23). And we can add a second filter run that it applies your filter to result of first run. Then you can rewrite your filter something like this (in filtering transclusion)
Oh man, that is pretty awesome. I can see the majority of the folk loving that.
But you’re right, for my disability, that isn’t explicit enough for me to distinguish what’s going on.
Too many ways of specifying individual tags, and I start getting into some cognitive overload. I’m the same way when facing a Chinese food buffet, always holding up the line because of too many choices.
Regardless, that is pretty awesome for normal folk who can bounce between the different ways the tag operator can be used.
I just discovered the other thing that causes me problems: lack of proximity.
I do find it difficult looking at “Tag 4” in that filter and not seeing the filter operator right before it. So I see the comma, and I backtrack away from “Tag 4” to figure out the filter operator is “tag”.
That back and forth, like long scrolls up and down in a browser window, or back and forward buttons on browsers, all cause dysfunction for this kid.
Thanks, Álvaro. You just helped me understand a little something there about how I process things, or rather when I can’t process things…
I was thinking that the tagging operator was the zay to get tiddlers that all share all of the tags in input. That’s what the dec say: “output: the titles of any tiddlers that carry the input tags”.
But in fact the effect of tagging is “output: the titles of any tiddlers that carry ANY OF the input tags”. Too bad for the instance. But I think a correction in the doc would be welcome.
I don’t know if they are loving that or not. The commas aren’t easy to see between brackets (for me). If I begin on end of filter run, i also have this problem. But any can build his/her mental shorcuts to avoid it. If someone can’t solve a problem, maybe he/she can create a “alternative way”
Yes, I tried with the tagging operator and I see that behaviour.
I think he documentation should be expanded to detail this. Multiple parameters to operators are only documented in a few operators, but if I read this correctly they can work on operators in general?
If general you may expect this to work {{{ [title[tid1],[tid2],[tid3]] }}} it does not.
or {{{ [all[current]get[caption],[description]] }}}``` it does not.
In the fields cases we have a workaround with fields operator. It has suffixs (exclude, include)
I think that there in’t any tiddler with those tags. The search is the tiddler with all these tags (¿and any other?)
In the case of titles, you find a issue, but I don’t know its reason. I was trying to find a workaround but i wasn’t lucky. I also found that the match operator doesn’t support multiple parameters.
Hello all !
The filter syntax provided by @Álvaro is very neat but doesnt match the requirements of cj.v : counting the tiddlers with 4 specifics tags and only those tiddlers.
Just a thought: it would be fine if the tagging operator could have a “all” parameter which would select tiddlers tagging all of the tags in input (currently, that’s “any tag is enough”).
Thus we would have a simple and readable solution as: