Page 1 of 1
How to check which tag database is currently active?
Posted: 12 Nov 2022 09:01
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.
Re: How to check which tag database is currently active?
Posted: 12 Nov 2022 10:01
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);
}
Re: How to check which tag database is currently active?
Posted: 12 Nov 2022 10:11
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>.
Re: How to check which tag database is currently active?
Posted: 12 Nov 2022 10:39
by highend
Then you should use it in the titlebar template

Re: How to check which tag database is currently active?
Posted: 12 Nov 2022 16:08
by GreetingsFromPoland
i updated my title bar template and it is quite useful; however, when using
, is there a way to only show the file (right now it shows full path and file) ?
Re: How to check which tag database is currently active?
Posted: 12 Nov 2022 19:15
by admin
Next beta:
Code: Select all
+ New variable:
<xytagdatfile> = XYplorer tags database file (without path)
Re: How to check which tag database is currently active?
Posted: 13 Nov 2022 10:51
by fabvit2
Thank you all!