I think that deleted reply was mine. I will copy and paste from Tiddlytalk

---
@Télumire . It’s true. They works like an OR. {{{ [tag[Tag 1],[Tag 2],[Tag 
3],[Tag 4]] }}} also return different result. This behaviour would be 
documented. 

El martes, 28 de septiembre de 2021 a las 2:41:03 UTC+2, TW Tones escribió:

> JP,
>
> One way of handling all tags on the current tiddler is not to use the 
> various tag operators but address the tags field directly.
>
> [all[current]get[tags]] returns the content of the tags field which 
> includes all tags.
>
> Does this meet with your requirement?
>
> On Monday, 27 September 2021 at 22:08:07 UTC+10 jn.pierr...@gmail.com 
> wrote:
>
>> 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:
>>
>> {{{ [tag1 tag2 tag3 tag4 +[tagging:all[]]] }}}
>>
>> Le lundi 27 septembre 2021 à 10:58:01 UTC+2, Télumire a écrit :
>>
>>> 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.
>>>
>>> See this screenshot  :
>>>
>>> https://i.imgur.com/lVlsYZt.png
>>>
>>> I think it's because the commas imply an OR condition, but here we want 
>>> an AND :)
>>>
>>> So with a a tiny bit of tweaking the correct filter is : 
>>>
>>> {{{ [[Tag 1][Tag 2][Tag 3][Tag 4]tagging[]] 
>>> :filter[tags[]count[]compare:eq[4]] }}}
>>>
>>> Here's a live demo : 
>>>
>>>
>>> https://Telumire.github.io/TW-tips/index.html#:%5B%5B4%20tags%20and%20only%20those%204%5D%5D%5B%5B3%20tags%20+%201%20other%5D%5D%5B%5B4%20tags%20and%20one%20more%5D%5D%5B%5BMultiple%20parameters%20separated%20by%20a%20%20,%20%20character%5D%5D
>>> Le samedi 25 septembre 2021 à 18:00:37 UTC+2, Álvaro a écrit :
>>>
>>>> - 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.
>>>>
>>>> El sábado, 25 de septiembre de 2021 a las 16:30:26 UTC+2, TW Tones 
>>>> escribió:
>>>>
>>>>> Of even this {{{ [tag[Common 
>>>>> Operators],[HelloThere],[TableOfContents]] }}}
>>>>>
>>>>> On Sunday, 26 September 2021 at 00:27:45 UTC+10 TW Tones wrote:
>>>>>
>>>>>> Very interesting. 
>>>>>>
>>>>>> 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.
>>>>>> On Sunday, 26 September 2021 at 00:18:58 UTC+10 Eric Shulman wrote:
>>>>>>
>>>>>>> I just tested this on both 5.1.23 and 5.2.0pre. I created one 
>>>>>>> tiddler containing
>>>>>>> ```
>>>>>>> {{{ [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] 
>>>>>>> :filter[tags[]count[]compare:eq[4]] }}}
>>>>>>> ```
>>>>>>>
>>>>>>> and another tiddler with the four tags (note capitalization and 
>>>>>>> spaces in the tag values).
>>>>>>>
>>>>>>> It *does* seem to work on both versions of TW
>>>>>>> -e
>>>>>>> On Saturday, September 25, 2021 at 7:02:19 AM UTC-7 TW Tones wrote:
>>>>>>>
>>>>>>>> Alvaro;
>>>>>>>>
>>>>>>>> You suggested something like this
>>>>>>>> {{{ [tag[Tag 1]**,**[Tag 2],[Tag 3],[Tag 4]] 
>>>>>>>> :filter[tags[]count[]compare:eq[4]] }}}
>>>>>>>>
>>>>>>>> As far as I can see this does not work on the pre-release and the 
>>>>>>>> t6ag format  [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] (simplified)  is not 
>>>>>>>> documented
>>>>>>>>
>>>>>>>> Does not work. So I asked if you tested this?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Saturday, 25 September 2021 at 22:11:48 UTC+10 Álvaro wrote:
>>>>>>>>
>>>>>>>>> I don't know if I understand you.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> El sábado, 25 de septiembre de 2021 a las 5:31:18 UTC+2, TW Tones 
>>>>>>>>> escribió:
>>>>>>>>>
>>>>>>>>>> Alvaro;
>>>>>>>>>>
>>>>>>>>>> Have you tested this?
>>>>>>>>>>
>>>>>>>>>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>>>>>>>>>> :filter[tags[]count[]compare:eq[4]]  }}}
>>>>>>>>>>
>>>>>>>>>> I cant see it working. Here 
>>>>>>>>>> <https://tiddlywiki.com/#Filter%20Parameter> is says 
>>>>>>>>>>
>>>>>>>>>> * NEW IN: 5.1.23 Filter operators support multiple parameters 
>>>>>>>>>> which are separated by a  ,  character.*
>>>>>>>>>>
>>>>>>>>>> *For example: [param1],[param2] or <param1>,{param2}*
>>>>>>>>>> However as far as I can see only if such multiple parameters are 
>>>>>>>>>> documented in the operator in question.
>>>>>>>>>>
>>>>>>>>>> Tones
>>>>>>>>>> On Saturday, 25 September 2021 at 01:39:53 UTC+10 Álvaro wrote:
>>>>>>>>>>
>>>>>>>>>>> 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)
>>>>>>>>>>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>>>>>>>>>>> :filter[tags[]count[]compare:eq[4]]  }}}
>>>>>>>>>>>
>>>>>>>>>>> Although maybe it be less understandble for you.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> El viernes, 24 de septiembre de 2021 a las 10:59:50 UTC+2, 
>>>>>>>>>>> jn.pierr...@gmail.com escribió:
>>>>>>>>>>>
>>>>>>>>>>>> That's fine by me.
>>>>>>>>>>>>
>>>>>>>>>>>> And yes filters are fun even if sometimes a bit tricky.
>>>>>>>>>>>>
>>>>>>>>>>>> So for the fun of it, you could arrange your filter so that the 
>>>>>>>>>>>> input would be the 4 tags you want.
>>>>>>>>>>>>
>>>>>>>>>>>> something like that:
>>>>>>>>>>>>
>>>>>>>>>>>> \define fun(tags)
>>>>>>>>>>>> <$set variable=occ filter="[[$tags]....put your filter code 
>>>>>>>>>>>> here...count[]]">Seen <<occ>> tiddlers with tags $tags$</$set>
>>>>>>>>>>>> \end
>>>>>>>>>>>>
>>>>>>>>>>>> Sometimes, this fun has you coding javascript filter operator. 
>>>>>>>>>>>> Would this be the case here? I have not thought about it yet.
>>>>>>>>>>>>
>>>>>>>>>>>> cheers,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Le vendredi 24 septembre 2021 à 03:54:34 UTC+2, 
>>>>>>>>>>>> cj.v...@gmail.com a écrit :
>>>>>>>>>>>>
>>>>>>>>>>>>> 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 ...
>>>>>>>>>>>>>
>>>>>>>>>>>>> Yeah, I find filters fun.
>>>>>>>>>>>>>
>>>>>>>>>>>>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b352209c-78f3-4ada-999a-024028812ab8n%40googlegroups.com.

Reply via email to