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/ff13fd09-44b5-40e5-876a-06bf22f22bde%40googlegroups.com.