109

In Midnight Commander, how to quickly set the right panel to the same directory as the left panel (and vice versa)?

essential
  • 103
Ivan
  • 17,708

5 Answers5

129

AltO opens the directory your cursor is on.

AltI opens the active panel's directory on the other panel.

Tested on MC 4.7

Kevin
  • 40,767
Csq
  • 1,391
73

Newer versions of Midnight Commander use Alt-o (also ESC followed by o) to do this.

Older versions used Alt-o for doing a change directory to the currently highlighted directory, so it will depend on which build you are using.

  • 36
    Version 4.8.3 (at least) now uses Alt-i to switch the other panel to the same folder as the current panel. See man mc for more. – SabreWolfy Aug 13 '12 at 18:27
  • on one of my machines (Version 4.8.29) alt-o doesn't work, but Esc-o works, to load the currently selected directory to the second panel (despite being said in man) – user3804598 Jul 18 '23 at 12:05
18

For me in iTerm2 the Esc i (First press esc and after press i not in the same time) is working well on my mac,

1

For os x terminal:

Press ⌘ command+⌥ option+o, you will see 'Option is Meta'.

Now ⌘ command+i works.

rofrol
  • 265
1

Basically combination is Meta+i. Some OS installations and probably some terminals have different settings regarding Meta key. On all my machines it is Esc, but I've heard from colleagues that they have it mapped to alt or option key.