I was able rename a bunch of tags today with your code (used the version 
from TW5 Magick). It was a trivial change - tag capitalisation. It would 
have been tedious to change each by hand. I thought the Tag Manager will be 
able to do this natively (v 5.1.14), but no luck and while searching for a 
solution, your post was the first hit. Thank you.

A question to others: Is this the best way to rename tags, any chance this 
feature coming to Tag Manager?

On Tuesday, 14 January 2014 22:20:41 UTC+5:30, Alberto Molina wrote:
>
> I have just created a tiddler that allows me to search and replace the 
> name of my tags. It works with two steps: 
>
>    1. It shows the tiddlers with the old "to-be-replaced" tags. With a 
>    checkbox, I can give them the new tags.
>    2. It shows the tiddlers with the old AND new tags. With a checkbox, I 
>    can remove the old tags.
>
> I guess it could be done with a single step, but I'm not a programmer so I 
> don't know how to do that. (I've tried and failed!)
> The title of the tiddler is "RenameTags". 
> The old name is written in a field called: "search".
> The new name is written in a field called: "replaceby".
>
> This is the content of the tiddler:
>
> |!Search tag: | {{!!search}} |
> |!Replace by: | {{!!replaceby}} |
>
> ---
>
> !First step
> !!//Apply the new tag to the following tiddlers//
> <$list filter=
> "[!has[draft.of]tag{!!search}!tag{!!replaceby}sort[created]]">
> <$checkbox tag={{RenameTags!!replaceby}}><$link to={{!!title}}><$view 
> field="title"/></$link></$checkbox>
> </$list>
>
> !Second step
> !!//Remove the old tag from the following tiddlers//
> <$list filter="[!has[draft.of]tag{!!search}tag{!!replaceby}sort[created]]"
> >
> <$checkbox tag={{RenameTags!!search}}> ~~<$link to={{!!title}}><$view 
> field="title"/></$link>~~</$checkbox>
> </$list>
>
>
>
>
>

-- 
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/d505b62d-5d9e-4188-af8c-d4a948542878%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to