Skip to content

Instantly share code, notes, and snippets.

@patheticpat
Forked from ipanin/mc_hotkeys.md
Created April 26, 2025 09:09
Show Gist options
  • Save patheticpat/c20a7d17a3d38be9ef3e578fb99437b1 to your computer and use it in GitHub Desktop.
Save patheticpat/c20a7d17a3d38be9ef3e578fb99437b1 to your computer and use it in GitHub Desktop.
Midnight Commander Keyboard Shortcuts for macOS

Midnight Commander Keyboard Shortcuts for macOS

In macOS Meta key is Esc. In some other systems Meta key is Alt.

Ctrl

  • Ctrl-T - Select item (like Insert key in another OS).
  • Ctrl-Space - Calculate directory size.
  • Ctrl-O - Switch panels on/off.
  • Ctrl-U - Swap panels.
  • Ctrl-R - Rescan.
  • Ctrl-S / Esc-S + chars - Go to file/dir in panel (quick search).
  • Ctrl-X, C - Chmod command dialog.

Esc

  • Esc-H - Command line history popup.
  • Esc-P - Insert previous command in command line.
  • Esc-A - Insert current working directory (pwd) in command line.
  • Esc-Enter - Insert selected name in command line.
  • Esc-I - Target=Source. Open same directory in the inactive panel.
  • Esc-O - Open directory under cursor in the inactive panel.
  • Esc-Y - Back. Go to previous directory in active panel.
  • Esc-V / Esc-G - Go to top of panel.
  • Esc-J - Go to bottom of panel.
  • Esc-? (Esc-Shift-/) - Find File dialog.
  • Esc-C - Quick cd popup.
  • Esc-C, Esc-H - Quick cd popup + show cd history.
  • Esc-C, Esc-P - Quick cd popup + select previous cd.
  • Esc-T - Change view mode for active panel.
  • Esc-number - Same as function key.

Function keys (F1 = Esc-1)

  • F1 - Help.
  • F2 - User menu.
  • F3 - View file / open directory.
  • F4 - Edit file. Shift-F4 - Create file.
  • F5 - Copy file or directory.
  • F6 - Move file or directory. Shift-F6 - Rename.
  • F7 - Create directory.
  • F8 - Delete file / directory.
  • F9 - Jump to menu bar.
  • F10 - Exit MC.

macOS alternatives for navigations keys:

  • Fn-Up = PgUp
  • Fn-Down = PgDown = Ctrl-V
  • Fn-Left = Home
  • Fn-Right = End
  • Fn-Backspace = Delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment