Skip to content

Instantly share code, notes, and snippets.

@sgergely
Created September 27, 2012 09:43
Show Gist options
  • Save sgergely/3793166 to your computer and use it in GitHub Desktop.
Save sgergely/3793166 to your computer and use it in GitHub Desktop.
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
Open same working directory in the inactive panel: Esc + i
Open parent working directory in the inactive panel: Esc + o
Go to top of directory in active pane: Esc + v / Esc + g
Go to bottom of directory in active pane: Esc + j / Ctrl + c
Go to previous directory: Esc + y
Search pop-up: Esc + ?
----- Ctrl -----
Refresh active panel: Ctrl + r
Selecting files and directories: Ctrl + t
Switch active <-> inactive panels: Ctrl + i
Switch active <-> inactive panels content: Ctrl + u
Execute command / Open a directory: Ctrl + j
----- F -----
F1: help
F2: user menu
F3: read file / open directory
F4: edit file
F5: copy file or direcotry
F6: move file or directory
F7: create directory
F8: delete file / directory
F9: open menu bar
F10: exit MC
Copied from: http://pastebin.com/i9kfVKT9
@Nedudi
Copy link

Nedudi commented Aug 29, 2013

thanks!

@Volodymyrk
Copy link

nice! That made a switch from Linux a little easier.

@sajt
Copy link

sajt commented Sep 9, 2014

Like

@vbauerster
Copy link

Esc commands are replaceable with alt(option) + hotkey

@Serhioromano
Copy link

I canot find how to copy to cliboard selected text in MC editor. I click Esc + 4 to edit file. Then use mouse or F3 to select. How to copy that?

@calinmiclaus
Copy link

Select the text with the mouse, use Command+C to copy and Command+V to paste

@AmaranthLIS
Copy link

Thanks!

@tinyzero4
Copy link

Like !

@cotwitch
Copy link

Please, does anybody know how to press [ Shift + F3 ] on Mac (like on linux)?

I want to view file without going through "filter"/"scrape" command defined for known extensions?
i.e. when viewing JPG file with mcedit (mc internal viewer) - you get just info like "/filename.jpg JPEG 546x195 546x195+0+0 8-bit sRGB 24.3KB 0.000u 0:00.000" ... But I want to look directly onto raw data...

I find a workaround by pressing sequence [ ESC - SHIFT + ! ] and prepending filename with "cat " ... but you know... this is not much comfortable :)

UPDATE:
I've just figured it out. Based on this bug, desired combination is:

[ fn + SHIFT + F5 ]

@mnba
Copy link

mnba commented Oct 18, 2015

Insert key for Mac OS X:

For Midnight commander it seem to be ^/Ctrl+T=Insert.

The more generic Insert function is supposed to be Fn+Return/Enter=Insert, see this other question[1] for more discussion and details.
[1] http://apple.stackexchange.com/questions/29463/where-is-the-insert-key-on-a-macbook-air

There were however little success with Fn+Return working reliably in many applications.
-Cited from: http://apple.stackexchange.com/questions/169130/simulate-insert-key-in-mac-os-x

@dimitrijer
Copy link

Thanks!

@danyaljj
Copy link

use Ctrl-t in place of the insert key to select multiple files, and Esc - 1-0 in place of the F keys.

@Yatko
Copy link

Yatko commented Oct 23, 2016

thanks @calinmiclaus - however, Select the text with the mouse, use Command+C to copy and Command+V to paste may not work ...

Select the text with the mouse and click the top bar (light blue) with the mouse (Fn+F9):
Edit > Copy to clipfile
Edit > Paste from clipfile

@maxwowpow
Copy link

maxwowpow commented Aug 30, 2017

Any way to jump a page down in the viewer (F3) >> SOLVED >> FN + Arrow

@azzamsa
Copy link

azzamsa commented Jan 24, 2018

Great!. thanks.

@terbooter
Copy link

Ctrl-o - show/hide subshell

@fivestones
Copy link

Anyone know how to bring up the rename file dialogue? It's supposed to be shift+F6. I have my function keys as regular function keys so I don't have to hold down shift, I only press F6. But shift+F6 doesn't do anything. F6 by itself brings up the move file dialogue.

@fivestones
Copy link

I figured it out. I am using Karabiner-elements and when I was pressing shift+F6 it was sending shift+illumination_increment (even thought just F6 was sending F6). I updated my preferences to send F6 along with any modifier keys and now shift+F6 works fine.

@a-zazell
Copy link

a-zazell commented Oct 9, 2018

Thank You Bro!

@filinivan
Copy link

how to create new file?

@sokalauvalery
Copy link

@filinivan shift+f4

@askucher
Copy link

how to show content of current file instead inactive tab?

@wakedeer
Copy link

How to rename a folder? Shift+F6 doesn't work, it just opens create a new text

@alexeyd-itsoft
Copy link

Shift + F6 works as expected. At least on external keyboard. MacOS 10.15.5

@jutsir
Copy link

jutsir commented Nov 20, 2020

Wrong go to bottom of directory in active pane Ctrl + c, need to be Ctrl + v

@AKlaus
Copy link

AKlaus commented Feb 23, 2021

When running MC under iTerm, then for copying to clipboard in MC editor hold Option ⌥ while selecting and then use CMD+C for copying the selected text (source - a comment in this SO post).

For what it's worth, started own gist for running MC on macOS under iTerm

@mentatxx
Copy link

mentatxx commented Jan 3, 2022

Thx!

Esc + Enter - copy currently selected file/folder name to the command line

@LaKing
Copy link

LaKing commented Oct 25, 2022

Thanks!

@pbies
Copy link

pbies commented Feb 22, 2024

Esc then A = copy panel path to command line

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