109

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

0

5 Answers 5

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

1
  • For MacOS the keys areCtrl + O, Ctrl + I
    – bora89
    Aug 25 at 10:39
72

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.

2
  • 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, 2012 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) Jul 18 at 12:05
17

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,

3
  • 1
    Works fine on other Mac terminals, like KiTTY. Oct 1, 2019 at 11:40
  • Xshell and other related terminals couldnt give respond to `alt´ key, since its surpressing its own shell. Good solution. May 18, 2020 at 8:27
  • This also works for me
    – Nam G VU
    Jun 5 at 13:26
1

For os x terminal:

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

Now ⌘ command+i works.

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .