1,Preferences / Folder Tabs / Options / Lister closes when last tab closes is on or off,Why did Directory Opus close the lister after I closed the last tab? In fact, I just want to go back to the next level of the directory.
2,In enhanced mode, the mouse clicks on the file to select the file. Where can I cancel it?
How are you closing the tab? You usually can't close the last tab if that option is off.
If you mean in Power Mode, what the mouse buttons do can be configured under Preferences / Display Modes / Power Mode. Or use Details Mode if you want things to behave like standard on Windows.
I closed the tab by double-clicking. When I closed the last tab, Directory Opus closed the lister and the double column became a single column.
It seems that the option did not work.
Thanks, I think the script is a bit complicated, and Directory Opus natively supports this operation is the most convenient. Because, after my search is completed, the file display shows the search results, I naturally double-click the tab to return to the previous directory.
The question about Directory Opus has been basically understood, and the purchase of Directory Opus in these two days.
Indeed, it replaces close with go back, until there is no more history, then it closes.
I was not actually sure under what scenario it was needed.
Prob need to check if is the right display, or tab count is 1.
Ok only go back if its the last tab on a file display
function OnInit(initData)
{
initData.name = "DontCloseLastTab";
initData.version = "1.0";
initData.copyright = "(c) 2019 wowbagger";
initData.desc = "";
initData.default_enable = true;
initData.min_version = "12.0";
}
// Called when a tab is closed
function OnCloseTab(closeTabData)
{
if((closeTabData.tab.right && closeTabData.tab.lister.tabsright.count == 1) ||
(!closeTabData.tab.right && closeTabData.tab.lister.tabsleft.count == 1))
{
if(closeTabData.tab.backlist.count > 0)
{
var doCmd = DOpus.NewCommand;
doCmd.RunCommand("Go back");
return true;
}
}
return false;
}
Thanks, I just want to return the folder of the search results to parent, only for the folder of the search results, the other tabs are still the same as usual.
You need to save it as a js file in folder %Appdata%\GPSoftware\Directory Opus\Script AddIns
So call it DontCloseLastTab.js.
Then you should see it in the script settings.
As @Leo said, you should link you account. It lets the people on the site know they are helping someone who has supported the app. If you don't people might start thing you have a pirated copy and wont share their lunch with you.
@wowbagger
This script is very useful, it can return folder to parent one by one, but the file display window is closed when it reaches the root folder.