A key-system to control the place where a new folder is opened

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):

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):

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.

UPDATE: In many directories have LNK shortcuts to other directories. The problem has always been that when I click on the shortcut, I go to the files in the linked directory, but I can no longer see the other files in the old directory.

SOLUTION: Using the same A@Go command as described above, and the @ResolveLinks: modifier that DOpus provides, create the button:

@ResolveLinks: A@Go {f!} Then as before, pressing F12 first and then this button opens the link in new tab, pressing F11 first opens it in the dual pane, pressing F12 and F11 opens it in a new tab in the dual pane, and so forth.