Perfect!  Saving that one away in my snippets!

Thanks

On Friday, April 3, 2020 at 1:41:54 PM UTC-4, Eric Shulman wrote:
>
> On Friday, April 3, 2020 at 10:23:36 AM UTC-7, David wrote:
>>
>> HOw can I add a tag to multiple Tiddlers easily?
>> I have a bunch of shopping items as tiddlers and they are already tagged 
>> with "ShoppingItem", and they are my SamsClub shopping list.  Now that I've 
>> gotten that working nicely, I'd like to bring in a couple more stores.  So 
>> I need to tag all the ShoppingItem tiddlers with a SamsClub tag.
>>
>
> This will do what you want:
> \define addTag(tagged,newtag)
> <$button> add ''<$text text="""$newtag$""" />'' to ''<$text text=
> """$tagged$""" />'' tiddlers
>    <$list filter="[tag[$tagged$]!tag[$newtag$]]">
>       <$action-listops $field="tags" $subfilter="[[$newtag$]]" />
>    </$list>
> </$button>
> \end
>
> <<addTag ShoppingItem SamsClub>>
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
> InsideTiddlywiki - http://TiddlyTools.com/InsideTW
>
>  
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7e4f8e11-a231-494c-b91d-20b3770e7625%40googlegroups.com.

Reply via email to