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".
|!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>
|!Search tag: | <$edit-text tiddler="$:/temp/RenameTags/search" tag="input" type="text"/> |
|!Replace by: | <$edit-text tiddler="$:/temp/RenameTags/replace" tag="input" type="text"/> |
---
!First step
!!//Apply the new tag to the following tiddlers//
<$list filter="[!has[draft.of]tag{$:/temp/RenameTags/search}!tag{$:/temp/RenameTags/replace}sort[created]]">
<$checkbox tag={{$:/temp/RenameTags/replace}}><$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{$:/temp/RenameTags/search}tag{$:/temp/RenameTags/replace}sort[created]]">
<$checkbox tag={{$:/temp/RenameTags/search}}> ~~<$link to={{!!title}}><$view field="title"/></$link>~~</$checkbox>
</$list>
I hope it is okay for you that I included this great trick in my http://tw5magick.tiddlyspot.com collection.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
<$list filter="[tag[.définition]tag[Fonctions]sort[title]]">
<<< <$link to={{!!title}}><$view field="title"/></$link>
<$transclude/>
<<<
<hr></$list>Danke schön Stephan! but I prefer to have the source of the definition more visible.
I've uploaded my new TW5 to tiddlyspot: http://tesis.tiddlyspot.com/ so others can see and get ideas from it.
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?