Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@Nedudi Nedudi commented Aug 29, 2013

thanks!

@Volodymyrk

This comment has been minimized.

Copy link

@Volodymyrk Volodymyrk commented Sep 13, 2013

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

@sajt

This comment has been minimized.

Copy link

@sajt sajt commented Sep 9, 2014

Like

@vbauerster

This comment has been minimized.

Copy link

@vbauerster vbauerster commented Oct 18, 2014

Esc commands are replaceable with alt(option) + hotkey

@Serhioromano

This comment has been minimized.

Copy link

@Serhioromano Serhioromano commented Dec 16, 2014

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

This comment has been minimized.

Copy link

@calinmiclaus calinmiclaus commented Jan 31, 2015

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

@AmaranthLIS

This comment has been minimized.

Copy link

@AmaranthLIS AmaranthLIS commented Mar 20, 2015

Thanks!

@breedish

This comment has been minimized.

Copy link

@breedish breedish commented May 24, 2015

Like !

@cotwitch

This comment has been minimized.

Copy link

@cotwitch cotwitch commented Oct 12, 2015

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

This comment has been minimized.

Copy link

@mnba 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

This comment has been minimized.

Copy link

@dimitrijer dimitrijer commented Mar 31, 2016

Thanks!

@danyaljj

This comment has been minimized.

Copy link

@danyaljj danyaljj commented Sep 27, 2016

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

@Yatko

This comment has been minimized.

Copy link

@Yatko 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

@maxgrass

This comment has been minimized.

Copy link

@maxgrass maxgrass commented Aug 30, 2017

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

@azzamsa

This comment has been minimized.

Copy link

@azzamsa azzamsa commented Jan 24, 2018

Great!. thanks.

@terbooter

This comment has been minimized.

Copy link

@terbooter terbooter commented Feb 12, 2018

Ctrl-o - show/hide subshell

@fivestones

This comment has been minimized.

Copy link

@fivestones fivestones commented Sep 25, 2018

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

This comment has been minimized.

Copy link

@fivestones fivestones commented Sep 26, 2018

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

This comment has been minimized.

Copy link

@a-zazell a-zazell commented Oct 9, 2018

Thank You Bro!

@filinivan

This comment has been minimized.

Copy link

@filinivan filinivan commented Dec 30, 2018

how to create new file?

@sokalauvalery

This comment has been minimized.

Copy link

@sokalauvalery sokalauvalery commented Apr 6, 2019

@filinivan shift+f4

@askucher

This comment has been minimized.

Copy link

@askucher askucher commented Apr 14, 2019

how to show content of current file instead inactive tab?

@wakedeer

This comment has been minimized.

Copy link

@wakedeer wakedeer commented May 23, 2020

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

@alexeyd-itsoft

This comment has been minimized.

Copy link

@alexeyd-itsoft alexeyd-itsoft commented Jun 10, 2020

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

@jutsir

This comment has been minimized.

Copy link

@jutsir jutsir commented Nov 20, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.