111

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

0

6 Answers 6

131

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
    Commented Aug 25, 2023 at 10:39
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.

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
    Commented 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) Commented Jul 18, 2023 at 12:05
19

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. Commented 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. Commented May 18, 2020 at 8:27
  • This also works for me
    – Nam G VU
    Commented Jun 5, 2023 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.

-1

Same directory in another panel Ctrl+Left/Right

1
  • 2
    This does nothing on my machine. And please add some detail to your answers. Where did you try this? On what system? What was it supposed to do exactly?
    – terdon
    Commented Jul 17 at 10:17

You must log in to answer this question.

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