[tw] Re: Tags quandary - how do I merge tag that have different case
Thanks Matabele. On Wednesday, July 20, 2016 at 5:44:13 AM UTC+12, Matabele wrote: > > Hi Farayi > > The ActionListops widget is designed for this kind of operation and > simplifies code considerably -- to search and replace a tag use with the > replace[] filter operator like so: > > <$button> > <$list filter="[tag[oldtag]]"> > <$action-listops $tags="newtag +[replace[oldtag]]"/> > > Do This > > > -- the $tags filter will operate on the 'tags' field of the current tiddler > -- the 'newtag' entry appends the tag to replace with to the end of the > list > -- the replace[oldtag] filter operator searches for 'oldtag' and replaces > it with the last item in the list ('newtag' in this case) > -- the list filter is used to select the list of tiddlers to operate on > (this may be any listing -- in this case the list of tiddlers with 'oldtag') > > Hope this helps > > regards > > On Monday, 18 July 2016 10:52:16 UTC+2, 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/2550cf27-df15-48c1-a812-bf137490a7c8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Tags quandary - how do I merge tag that have different case
Hi Farayi The ActionListops widget is designed for this kind of operation and simplifies code considerably -- to search and replace a tag use with the replace[] filter operator like so: <$button> <$list filter="[tag[oldtag]]"> <$action-listops $tags="newtag +[replace[oldtag]]"/> Do This -- the $tags filter will operate on the 'tags' field of the current tiddler -- the 'newtag' entry appends the tag to replace with to the end of the list -- the replace[oldtag] filter operator searches for 'oldtag' and replaces it with the last item in the list ('newtag' in this case) -- the list filter is used to select the list of tiddlers to operate on (this may be any listing -- in this case the list of tiddlers with 'oldtag') Hope this helps regards On Monday, 18 July 2016 10:52:16 UTC+2, 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/538c5bc7-dc0b-4699-89ea-cb635befc732%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Tags quandary - how do I merge tag that have different case
Thanks Reakt.. On Tuesday, July 19, 2016 at 3:25:13 AM UTC+12, reakt...@gmail.com wrote: > > You may also want to check out the Search and Replace Tag wizard - > http://tobibeer.github.io/tb5/#Search%20And%20Replace%20Tag > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/99bedb40-6461-45b1-aa96-8c5eb6d94e54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Tags quandary - how do I merge tag that have different case
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. > > > > > > > > remove > > > > > > <$select tiddler=<> field="tagtoremove" default='notset'> > > <$list filter='[all[tiddlers]tags[]]'> > > > field="tagtoremove"><$view >> field='title'/> > > > > > > > > > > and add > > > > > > <$select tiddler=<> field="tagtoadd" default='notset'> > > <$list filter='[all[tiddlers]tags[]]'> > > > field="tagtoadd"><$view >> field='title'/> > > > > > > > > > > <$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=<>/> > > <$action-sendmessage $message="tm-remove-tag" $param=<>/> > > > > > > Click me! > > > > > > > > > > > > > > > > > > > > <$list filter="[all[shadows+tiddlers]tag{!!tagtoremove}]"> > > <$link>{{!!title}} > > > > > > > > > > > > <$list filter="[all[shadows+tiddlers]tag{!!tagtoadd}]"> > > <$link>{{!!title}} > > > > > > > > > > > > > > > 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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.
[tw] Re: Tags quandary - how do I merge tag that have different case
You may also want to check out the Search and Replace Tag wizard from Tobi Beer - http://tobibeer.github.io/tb5/#Search%20And%20Replace%20Tag -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/f0468e3b-d6ed-4f41-a5f8-99fffa782097%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Tags quandary - how do I merge tag that have different case
Much appreciated RichardWilliamSmith, I will have a play in a sandbox and I will add it into production. On Monday, July 18, 2016 at 8:52:16 PM UTC+12, 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/f00761eb-be0c-4e1c-a0b5-d7006bb0b365%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: Tags quandary - how do I merge tag that have different case
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. remove <$select tiddler=<> field="tagtoremove" default='notset'> <$list filter='[all[tiddlers]tags[]]'> > field="tagtoremove"><$view > field='title'/> and add <$select tiddler=<> field="tagtoadd" default='notset'> <$list filter='[all[tiddlers]tags[]]'> > field="tagtoadd"><$view > field='title'/> <$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=<>/> <$action-sendmessage $message="tm-remove-tag" $param=<>/> Click me! <$list filter="[all[shadows+tiddlers]tag{!!tagtoremove}]"> <$link>{{!!title}} <$list filter="[all[shadows+tiddlers]tag{!!tagtoadd}]"> <$link>{{!!title}} 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/bab3a196-3924-4e8e-9dfe-d6acf9ba7956%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.