Page 1 of 1
Tag clouds and “Click and Tag”
Posted: 26 Jan 2019 18:44
by justerman
I’ve worked out how to use taglist() to load alternative tag clouds but it seems that taglist() has no effect on the list offered by “Click and Tag”. That is not what I would have expected. Am I missing something?
Is there a clever way to use "Click and Tag" productively with long tag lists?
Re: Tag clouds and “Click and Tag”
Posted: 26 Jan 2019 18:55
by highend
That category adds all existing tags from the tag database, not tag lists (their entries aren't necessarily in the db)
Scripting could help but that would require more clicks (one click / keyboard shortcut to invoke the script and probably a double click or multiple single ones
depending on how they are displayed (menu or an inputselect() window))...
Re: Tag clouds and “Click and Tag”
Posted: 27 Jan 2019 08:55
by highend
It could look like this via:
Code: Select all
$tags = taglist();
if !($tags) { status "No tag(s) in taglist, aborted!", "8B4513", "stop"; end true; }
$tags = regexreplace($tags, "(.+?)(,|$)", "$1|$1|:tagsadd,");
$sel = inputselect("Choose tag(s) to apply", $tags, ",", 1+2+32+64+1024, , 300, 600);
tagitems("tags", $sel);
taglist.png
An advantage over the catalog, multiple tags could be applied in one step. If you don't want this,
remove the +2 in the line beginning with $sel =
This would remove the checkboxes...
Re: Tag clouds and “Click and Tag”
Posted: 27 Jan 2019 09:54
by justerman
Thanks Highend, firstly for confirming my understanding, and secondly for a proposed script. I'm going to see where that takes me.