Tags - complete list

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
TedL1972
Posts: 64
Joined: 15 Nov 2018 18:49

Tags - complete list

Post by TedL1972 »

Hello,

I am trying to organize all my tags which I have not used in a while and so I may have forgotten some of the existing features.

I have been adding tags recently to documents but when I pull up the tag list those that I created in the past do not show up. I tried "Load Tags Database" but it didn't change the list. If I go on each document and I right click and then select "Add tags to Tag List" and it will add them.

SIs there a way to update the list so that it is a "complete list" of all the existing tags with just one command?

If not, what is the shortest way to make a complete list?

Thank you.

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Tags - complete list

Post by jupe »

If you have got one of the tagging buttons on the toolbar such as "Add Tags", right click it "Update Tag List".

TedL1972
Posts: 64
Joined: 15 Nov 2018 18:49

Re: Tags - complete list

Post by TedL1972 »

Great thanks. I thought there was a way to do it.

Another one if I may is that I have a script that automatically copies documents in folders when the document is tagged with the same name of that particular folder. I realized that when these documents are copied the tags are not copied as well. I do have checked the following:

Configuration | Information | Tags | Copy tags on copy operations

Is there anything else I should change so that the tags are always copied along with the document?

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Tags - complete list

Post by highend »

Post the script?
One of my scripts helped you out? Please donate via Paypal

TedL1972
Posts: 64
Joined: 15 Nov 2018 18:49

Re: Tags - complete list

Post by TedL1972 »

Code: Select all

$saveTo   = replace(trim(input("Enter Folder", "Input each folder on a new line!", "F:\FRUITS", "m"), <crlf>), <crlf>, "|");
  $tags   = replace(trim(input("Enter tag(s)", "Input each tag on a new line!", "Banana<crlf>Orange<crlf>Apple", "m"), <crlf>), <crlf>, "|");

    $copyList = "";
    foreach($tag, $tags, , "e") {
        $tagged = quicksearch("tags:$tag", "*", , "s");
        foreach($item, $tagged, <crlf>, "e") {
            $item = trim($item);
            $tag = trim($tag);
            if ($tag != $lastTag) { $copyList .= "<::>$tag" . <crlf>; }
            $dstFile = trim($saveTo, "\") . "\" . $tag . "\" . gpc($item, "file");
            if !(exists($dstFile)) { $copyList .= $item . <crlf>; }
            $lastTag = $tag;
        }
    }

    if !(regexmatches($copyList, "^([a-z]|\\)")) { status "No new item(s) found!", "8B4513", "stop"; end true; }
    $copyList = formatlist(replace($copyList, "<::>", , , , 1), "e", <crlf>); // Remove the first separator

    setting "BackgroundFileOps", 0;
    $count = gettoken($copyList, "count", "<::>");
    while ($i++ < $count) {
        $section = gettoken($copyList, $i, "<::>");
        $tag = gettoken($section, 1, <crlf>);
        $itemsToCopy = replace(gettoken($section, 2, <crlf>, , 2), <crlf>, "|");
        if ($itemsToCopy) {
            $copyToPath = trim($saveTo, "\") . "\" . $tag;
            copyto $copyToPath, $itemsToCopy, , 2, 2, 1, 1, 0, 0, , 0, 0;
        }
    }
    wait 10;
    status "All new item(s) copied...";

Norn
Posts: 483
Joined: 24 Oct 2021 16:10

Re: Tags - complete list

Post by Norn »

Occasionally the target item will not be tagged when the source item has a tag and label.

Code: Select all

copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1, 0, 0, , 0, 0;
This seems to work fine:

Code: Select all

copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1
Windows 11 24H2 @100% 2560x1440

TedL1972
Posts: 64
Joined: 15 Nov 2018 18:49

Re: Tags - complete list

Post by TedL1972 »

Thanks.

Is this line of code:

Code: Select all

copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1
supposed to replace this one?

Code: Select all

copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1, 0, 0, , 0, 0;
or does it need to be added? I try to run it both ways and I get errors in both instances.

Is "D:\" supposed to be replaced with the actual directory? What's T1?

Norn
Posts: 483
Joined: 24 Oct 2021 16:10

Re: Tags - complete list

Post by Norn »

I ran it again a few times and it happened again, it's an issue.
Windows 11 24H2 @100% 2560x1440

admin
Site Admin
Posts: 64848
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Tags - complete list

Post by admin »

You mean this?

Code: Select all

copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1, 0, 0, , 0, 0;

Norn
Posts: 483
Joined: 24 Oct 2021 16:10

Re: Tags - complete list

Post by Norn »

Both, happen occasionally. . .
Windows 11 24H2 @100% 2560x1440

admin
Site Admin
Posts: 64848
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Tags - complete list

Post by admin »

Foreground or background operation?
Custom Copy or shell copy?

Norn
Posts: 483
Joined: 24 Oct 2021 16:10

Re: Tags - complete list

Post by Norn »

Background operation
Custom Copy
Attachments
FileOperations.png
FileOperations.png (58.29 KiB) Viewed 1292 times
Windows 11 24H2 @100% 2560x1440

admin
Site Admin
Posts: 64848
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Tags - complete list

Post by admin »

I assume background operation is a necessary condition for this issue to happen?

Norn
Posts: 483
Joined: 24 Oct 2021 16:10

Re: Tags - complete list

Post by Norn »

I unchecked both and it still happens.
Attachments
FileOperations2.png
FileOperations2.png (58.2 KiB) Viewed 1283 times
Windows 11 24H2 @100% 2560x1440

admin
Site Admin
Posts: 64848
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Tags - complete list

Post by admin »

Norn wrote: 18 Jul 2023 19:26 Both, happen occasionally. . .
Both? Which both?

Post Reply