Rene,

No ego here to bother. But of course we in effect answered two different 
questions. I am glad you found one that suits.

Regards
Tony

On Tuesday, June 19, 2018 at 11:08:28 AM UTC+10, Rene wrote:
>
> @TonyM and @MarkS
>
> Thank you both very much for responding!  I will be honest and say that I 
> ended up trying and using Mark's method, because it was a simple one-liner 
> and it worked on first try.  A thousand pardons TonyM, but for a person who 
> struggles with code I jumped on the simpler solution.
>
> And yes interaction among users can only benefit the community; do please 
> keep doing what you guys do!
>
> Many thanks again!
>
> - Rene
>
>
> On Monday, June 18, 2018 at 10:24:34 PM UTC+8, Mark S. wrote:
>>
>> You can do this leveraging filter Runs to apply some Boolean logic. Or 
>> maybe illogic.
>>
>> For simplicity, I'm using "TagA" as the name of the tag.
>>
>>
>> *Find:*
>> all tiddlers tagged with TagA
>>
>>
>> *From those, subtract the following group*
>> find all tiddlers with TagA 
>> find all tags in those tiddlers, removing TagA
>> find all tiddlers tagged by those tiddlers
>> subtract this group 
>>
>> Here's what I have, tested very briefly on TiddlyWiki.com:
>>
>> <<list-links "[tag[TagA]] -[tag[TagA]tags[]!title[TagA]tagging[]]">>
>>
>> Change TagA to you tag name of course. Hopefully I haven't made any logic 
>> errors, but it's easy to overlook something, so test around a bit.
>>
>> Good luck!
>>
>> -- Mark
>>
>
>
> On Tuesday, June 19, 2018 at 8:20:44 AM UTC+8, TonyM wrote:
>>
>> Rene,
>>
>> I used this as an exercise and came up with this short macro.
>>
>> <$list filter="[tag[$intag$]]">
>> First it lists all tiddlers tagged with your target tag "one" in this 
>> example inside the first <$list
>> With no variable set on the list statement this will change the current 
>> tiddler value
>>
>> <$list filter="[is[current]get[tags]prefix[$intag$]suffix[$intag$]]" 
>> variable=null>
>> Then the second list gets the value in the tags field of the current 
>> tiddler (ie all tags)
>> And asks it to list only a tags field beginning with the target tag and 
>> ending with the target tag.
>> This list uses the variable null so current tiddler remains as set by the 
>> first <$list as a result {{!!title}} refers to the tiddler title in the 
>> first list that passed the test in the second list.
>>
>> Macro in same tiddler or tagged $:/tags/Macro 
>> \define showonlytagged(intag)
>> <$list filter="[tag[$intag$]]">
>>   <$list filter="[is[current]get[tags]prefix[$intag$]suffix[$intag$]]" 
>> variable=null>
>>   {{!!title}} Tagged "$intag$" only<br>
>> </$list>
>> \end
>>
>> Execute
>> <<showonlytagged "one">>
>>
>>
>> Mark,
>>
>> It has not gone unnoticed by me we are both often endeavouring to solve 
>> the same problem for people and offering some times quite different 
>> solutions, however I want to point out I am getting great value from it. I 
>> think of it as diverse input and collaboration rather than competitive, but 
>> I hope we continue.
>>
>> Regards
>> Tony
>>
>>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4ab17405-9681-4cc8-bf3e-72183bdfbb40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to