About a third of the menu buttons on my main non-floating toolbar are either commands to go to a particular folder, or commands to go to a folder picked out using {DlgFolder}.
I was unhappy with these buttons because they opened my new folder in my current tab, which was not always what I wanted.
'Key-Down' procedures require the mouse, which I try not to use because of my wrist, so I developed a system that uses keys to control the place where my new folder is opened.
All I do is press one of the keys F12–F9 first, before pressing any of my 'Go to a new folder' buttons:
- Press F12 first, and the next new folder will open in a new Source tab.
- Press F11 first, and the next new folder will open in the current tab of the Destination.
- Press F12 and F11 first, and the next new folder will open in a new Destination tab.
- Press F10 first, and the next new folder will open in a new single-pane lister.
- Press F9 first, and the next new folder will open in a new dual-pane lister.
- Press nothing first, and the next new folder will open in the current Source tab, just as normal.
This required no script, but did need a little fancy footwork turning global and lister variables on and off.
First, I made F12–F9 into toggle-hotkeys for the following four buttons that sit together on my main toolbar. Each shows its icon but not its label, and each highlights when active.
(Settings > Customise, then drag each button to the toolbar — the four hotkeys can easily be changed, or removed by mouse-addicts):
- Open a New Folder in a New Tab.dcf (704 Bytes)
- Open a New Folder in the Destination .dcf (748 Bytes)
- Open a New Folder in a New Single Lister.dcf (777 Bytes)
- Open a New Folder in a New Dual Lister.dcf (712 Bytes)
Secondly, I replaced Go in each menu button on my toolbar by A@Go, where A@Go is the name of the following user-defined command.
(Settings > Customise > Commands > User-defined Commands):
- A@Go.dcf (218 Bytes)
Thirdly, I placed A@Go in front of each command where a folder was picked out using {DlgFolder}.
For example:
{DlgFolder|Select a subdirectory of C:\ProgramData\|/CommonAppData|Expand}
became
A@Go {DlgFolder|Select a subdirectory of C:\ProgramData\|/CommonAppData|Expand}
thus bringing it under the control of the F12–F9 buttons.
Fourthly, when I want to open a single selected folder in a display, the following button does this in a way that respects the F12–F9 buttons (its present compound hotkey O, O can easily be changed, or removed):
This system works with almost all the DOpus aliases, as in A@Go /trash and A@Go /network, and with non-directory folders, as in A@Go Lib://.
Once the system is set up, the only thing I have to remember is to press the hotkey before I open the new folder. I've now been using it for a year or so, and I've found it very useful indeed — DOpus is extraordinarily flexible.