Page 1 of 1
Remove Tab on Folder Delete?
Posted: 01 Nov 2022 22:51
by Vocalpoint
All
Feel like I am missing an obvious setting here - but if I highlight any folder (or subfolder) in the main directory tree on the left of XYPlorer - a tab opens for that folder showing the files within the folder on the right pane of XY.
However - if I decide to delete the entire folder (and its files) on the tree (either to Recycle Bin) or permanently - the folder is vaporized but the tab relating to it remains on the right side and always has the annoying message of:
2022-11-01_15-48-39.png
Do this 20 times and suddenly I have 20 tabs (That point to nothing) that need to be manually closed.
Is there a setting to kill the tab when the folder it relates to is deleted?
Cheers
VP
Re: Remove Tab on Folder Delete?
Posted: 01 Nov 2022 23:26
by highend
Afaik not.
You could either use a script for custom event action (Other Events - Switch tabs) but this still requires you to click on a different than the current tab (it doesn't need to be one which path doesn't exist anymore), use the script manually to cleanup all those tabs or... write e.g. an AHK script that takes care of cleaning up e.g. every two seconds...
Code: Select all
$tabs = get("tabs", <crlf>);
$cntTabs = gettoken($tabs, "count", <crlf>);
$tabID = 1;
foreach($tab, $tabs, <crlf>, "e") {
if (exists($tab) != 2) {
tab("close", 0, $tabID);
$tabID -= 1;
}
$tabID += 1;
}
Re: Remove Tab on Folder Delete?
Posted: 02 Nov 2022 01:03
by RalphM
It seems like you're not using many tabs that should stay there.
How about you define a default tab, which is then used to open whatever folder you open from the tree.
Re: Remove Tab on Folder Delete?
Posted: 02 Nov 2022 11:55
by LittleBiG
Ages ago I asked for a CEA on delete (to be able to cancel the delete if the file or folder had to be protected based on an algorithm.) However, if you wanted to delete many files or folders, it could slow the deletion down significantly. But could help here anyway.
Re: Remove Tab on Folder Delete?
Posted: 03 Nov 2022 04:19
by Vocalpoint
All
Managed to make this about a 100 times better by changing the following:
Tabs and Panes->Tabs->Unchecked "Reuse Existing Tabs when changing the location"
and
General-Tree and List->Unchecked Select Parent of Deleted Folder.
This works and removes the dead folder tab.
RalphM - never had the "Default Tab" option checked on a specific folder tab - what does this do exactly?
Cheers
VP
Re: Remove Tab on Folder Delete?
Posted: 03 Nov 2022 07:48
by RalphM
Default tab would be used for all your clicks in the tree, unless a tab for that location exists already.
However you would either need to set the "Select parent of deleted folder" back on or live with the "Location not available" message until you select the next folder in the tree.