How to check which tag database is currently active?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
fabvit2
Posts: 41
Joined: 05 Sep 2014 11:01

How to check which tag database is currently active?

Post by fabvit2 »

How to which tag database is currently active?
I often switch tag databases and it seems there is no visual clue of which tag database is currently in use.

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

Re: How to check which tag database is currently active?

Post by highend »

Only idea...

Put it on a toolbar button and use it to load / reload or see the current one (does only work if you've used it at least once to load a db^^)

Requires:
Configuration | General | Refresh, Icons, History | Scripting | [x] Remember permanent variables

Code: Select all

    perm $P_TAG_DB;

    $menu = "";
    if (exists($P_TAG_DB) == 1) { $menu = $P_TAG_DB . <crlf> . "-" . <crlf>; }
    $menu .= "Load Tags Database|load" . <crlf> . "Reload Tags Database|reload";

    $sel = popupmenu($menu, 6:=<crlf>, 7:="|");
    end (!$sel);
    if ($sel == "load") {
        $path = ($P_TAG_DB) ? gpc($P_TAG_DB, "path") : <xydata>;
        $db   = inputfile($path, ".dat", "Select your tag database file...");
        if ($db) { $P_TAG_DB = tagload($db, 3); }

    } elseif ($sel == "reload") {
        #887;
    } else {
        tagload($P_TAG_DB, 0);
    }
One of my scripts helped you out? Please donate via Paypal

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

Re: How to check which tag database is currently active?

Post by admin »

1) It is listed at the bottom of Help | Various Information.

2) It is shown in the tooltip of the label right of the Options button here: Configuration | Information | Tags | Currently 894 items are tagged.

3) It's in the variable <xytagdat>.

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

Re: How to check which tag database is currently active?

Post by highend »

Then you should use it in the titlebar template :)
One of my scripts helped you out? Please donate via Paypal

GreetingsFromPoland
Posts: 283
Joined: 29 Sep 2022 14:20
Location: Win10 @125%

Re: How to check which tag database is currently active?

Post by GreetingsFromPoland »

i updated my title bar template and it is quite useful; however, when using

Code: Select all

<xytagdat>
, is there a way to only show the file (right now it shows full path and file) ?

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

Re: How to check which tag database is currently active?

Post by admin »

Next beta:

Code: Select all

    + New variable:
        <xytagdatfile>    = XYplorer tags database file (without path)

fabvit2
Posts: 41
Joined: 05 Sep 2014 11:01

Re: How to check which tag database is currently active?

Post by fabvit2 »

Thank you all!

Post Reply