Skip to content

Instantly share code, notes, and snippets.

@AKlaus
Last active April 1, 2024 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AKlaus/105f64c3f4387d0641705442bd1753d5 to your computer and use it in GitHub Desktop.
Save AKlaus/105f64c3f4387d0641705442bd1753d5 to your computer and use it in GitHub Desktop.
Midnight Commander Keyboard Shortcuts for Mac OSX
History of... Shortcut
Directory Esc, Shift+H
Commands Esc, H
Previous command line (iterates through commands) Esc, P
Viewed/Edited files Esc, Shift+E
Panels Shortcut
View change (iterates through directory views) Esc, T
Frequently visited directories aka "hotlist" ⌃ Ctrl + \
Search directory/file in active panel Esc, S or ⌃ Ctrl + S then start typing the name
Search pop-up Esc, ?
Filtered View pop-up Esc, !
Refresh active panel ⌃ Ctrl + R
Selecting files and directories ⌃ Ctrl + T
Command line Shortcut
Print current working directory in command line Esc, A
Print currently selected file in command line Esc, Enter
Previous command line (iterates through commands) Esc, P
Selecting Shortcut
Mouse select text and copy to clipboard (under iTerm) hold ⌥ Option while selecting and then ⌘ Cmd+C for copying the selected text
Selecting files and directories ⌃ Ctrl + T
Path to... Path
Path to the MC folder installed via Homebrew /usr/local/Cellar/midnight-commander/{version}
Path to the keymap file {MC version}/etc/mc/mc.default.keymap

Unresolved questions:

  • How to get the size of the current/selected directory(ies) whe the Ctrl+Space combination is reserved?
  • How to open files for editing in specific editors?
  • How to keep the text in commnd line when pressing the Ctrl+O to hide the panels?

Sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment