The macro:

\define remove_tag(filter_tag remove_tag)
>
> <$button>
>
> <!-- We filter tiddlers with tag "filter_tag"-->
> <$list filter="[tag<__filter_tag__>]" variable="deleteTiddler">
>
> <!-- With each tiddler of this list (stored in "deleteTiddlers" variable) 
> -->
> <$fieldmangler tiddler=<<deleteTiddler>> >
>
> <!-- We remove the tag "remove_tag" from each tiddler of the list -->
> <$action-sendmessage $message="tm-remove-tag" $param=<<__remove_tag__>>/>
> </$fieldmangler>
> </$list>
> remove ''<<__remove_tag__>>'' from ''<<__filter_tag__>>'' tagged tiddlers
> </$button> 


> \end
>

You call this macro this way:

<<remove_tag tag-a tag-x>>
>

With this code you remove tag-x from all tiddlers tagged with tag-a.

-- 
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/7eb345fe-fdb4-417e-8a8a-3ff35ee1280a%40googlegroups.com.

Reply via email to