Thanks RichardWilliamSmith again. The utility worked a treat. I have 
applied in the production file.

Best regards,

On Monday, July 18, 2016 at 11:37:47 PM UTC+12, RichardWilliamSmith wrote:
>
> Hi Farayi,
>
> I made this for you, it's a "tag re-tagger" - it can swap one tag for 
> another (existing) tag over all tiddlers. let me know if it works. Please 
> make a copy of your wiki before using it.
>
> Copy the following into a tiddler - it doesn't matter what it's called;
>
> !!!This removes one tag and adds another
>
> Be careful. There is no undo.
>
> <table>
>
> <tr>
>
> <td>
>
> remove
>
> </td>
>
> <td>
>
> <$select tiddler=<<currentTiddler>> field="tagtoremove" default='notset'>
>
> <$list filter='[all[tiddlers]tags[]]'>
>
> <option value=<<currentTiddler>> field="tagtoremove"><$view 
>> field='title'/></option>
>
> </$list>
>
> </$select>
>
> </td>
>
> <td>
>
> and add
>
> </td>
>
> <td>
>
> <$select tiddler=<<currentTiddler>> field="tagtoadd" default='notset'>
>
> <$list filter='[all[tiddlers]tags[]]'>
>
> <option value=<<currentTiddler>> field="tagtoadd"><$view 
>> field='title'/></option>
>
> </$list>
>
> </$select>
>
> </td>
>
> <td>
>
> <$set name="newTag" value={{!!tagtoadd}}>
>
> <$set name="oldTag" value={{!!tagtoremove}}>
>
> <$button>
>
> <$list filter="[all[shadows+tiddlers]tag{!!tagtoremove}]">
>
> <$fieldmangler>
>
> <$action-sendmessage $message="tm-add-tag" $param=<<newTag>>/>
>
> <$action-sendmessage $message="tm-remove-tag" $param=<<oldTag>>/>
>
> </$fieldmangler>
>
> </$list>
>
> Click me!
>
> </$button>
>
> </$set>
>
> </$set>
>
> </td>
>
> </tr>
>
> <tr>
>
> <td>
>
> </td>
>
> <td>
>
> <$list filter="[all[shadows+tiddlers]tag{!!tagtoremove}]">
>
> <li><$link>{{!!title}}</$link></li>
>
> </$list>
>
> </td>
>
> <td>
>
> </td>
>
> <td>
>
> <$list filter="[all[shadows+tiddlers]tag{!!tagtoadd}]">
>
> <li><$link>{{!!title}}</$link></li>
>
> </$list>
>
> </td>
>
> <td>
>
> </td>
>
> </tr>
>
> </table>
>
>
> If you want to put this tool in the control panel, give it the tag 
> $:/tags/ControlPanel and if you want it to disappear from the regular 
> search results, give it a title that starts with $:/
>
> Regards,
> Richard
>
> On Monday, July 18, 2016 at 6:52:16 PM UTC+10, Farayi Chambati wrote:
>>
>>
>> I have a tag like "Movie" and "movie". How do I rename one or how I merge 
>> these? My queries are now very complicated because of this. OR what do you 
>> recommend?
>>
>>
>>

-- 
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/eedcfebc-300c-4580-904c-a802b633860e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to