Page 1 of 1
Tag Control
Posted: 05 Feb 2015 16:17
by binocular222
A request from stanmarsh, maybe useful to others.
Similar to Flat File management attempt#1
http://www.xyplorer.com/xyfc/viewtopic. ... ent#p94487, this script add/remove tags, which are stored in filename in such format: "Base ~ Tag1, Tag2,"
If you don't want the popup menu, just call the script's label such as:
Re: Tag Control
Posted: 24 Nov 2016 09:14
by pleiades
ola binocular!
i found this filename tag system and like to use it instead of the built-in tag system, after thinking about it, the filename tag system is better suited to my needs because i can see the tags quickly and i can use another program to search for the tags.
i would like to request a feature for tagcontrol, i like to have a one click add tag / remove tag similar to the built-in tags, instead of showing a popup it will add the tag quickly in the filename.
how to do this?
TIA!
Re: Tag Control
Posted: 24 Nov 2016 09:20
by highend
But he has already written how to do that in the first post?
If you don't want the popup menu, just call the script's label such as:
load "TagControl.xys", "add";
Re: Tag Control
Posted: 25 Nov 2016 03:09
by pleiades
Using the "load "TagControl.xys", "add";" opens up a pop-up to select tags to add, what i'm looking for is the same function of the native tag system Click and Tag, you just choose files/folder then click the "Click and Tag" and it will add the Tag quickly without any pop-ups.
Re: Tag Control
Posted: 25 Nov 2016 09:43
by highend
Ok, I see
This little script would do this. No fancy features, it just tags items with whatever they have behind the "~" delimiter...
It saves the tag database right after the tagging process itself.
Code: Select all
foreach($item, <get SelectedItemsPathNames <crlf>>, <crlf>) {
$tags = trim(gettoken(gpc($item, "base"), 2, "~"));
if !($tags) { continue; }
tagitems("tags", $tags, $item);
}
if ($tags) { status "Tags added!"; savesettings 64; }
else { status "Items didn't contain tags, nothing done!", "8B4513", "stop"; }
Re: Tag Control
Posted: 28 Nov 2016 04:05
by pleiades
thank you again highend!
