summaryrefslogtreecommitdiff
path: root/080_blog/00110_Midnight-Commander-Cheatsheet/index.md
blob: 0a11a9b84bf05c5008d3299a11dae9558e02f491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Midnight Commander Cheatsheet
=============================

    June 07, 2018

A short cheatsheet summarizing midnight commander's most useful shortcut keys. 

Basic Navigation
----------------
<div class="row">
<div class="col-2"><span class="px-2 bg-primary text-white">tab</span></div>
<div class="col-10">switch active panel</div>
</div>

<div class="row">
<div class="col-2"><span class="px-2 bg-primary text-white">up/down</span></div>
<div class="col-10">select previous/next rown</div>
</div>
<div class="row">
<div class="col-2"><span class="px-2 bg-primary text-white">return</span></div>
<div class="col-10">open selected directory</div>
</div>
<div class="row">
<div class="col-2"><span class="px-2 bg-primary text-white">alt-o</span></div>
<div class="col-10">open selected directory on other panel</div>
</div>
<!--
<table class="table">
<tbody>
<tr><td><span class="px-2 bg-primary text-white">up/down</span></td><td> select previous/next row</td></tr>
<tr><td><span class="px-2 bg-primary text-white">return</span></td><td> open selected directory</td></tr>
<tr><td><span class="px-2 bg-primary text-white">alt-o</span></td><td> open selected directory on other panel</td></tr>
</tbody>
</table>
-->

View
----
<div><span class="px-2 bg-primary text-white">alt-.</span> toggle hidden files</div>
<div><span class="px-2 bg-primary text-white">ctrl-o</span> toggle console</div>
<div><span class="px-2 bg-primary text-white">alt-t</span> toggle listing mode</div>
<div><span class="px-2 bg-primary text-white">alt-i</span> sync with other panel</div>
<div><span class="px-2 bg-primary text-white">ctrl-u</span> swap panels</div>

Miscellaneous
-------------
    shift-f6    rename filling in the current name
    insert/ctrl-t/+/\/*  - selections
    esc-tab     auto complete
    ctrl-enter / alt-enter - copy currently selected filename to console
    Ctrl + Shift + Enter - copy full path
    enter/f3/f4 - ??? how to have full control over behaviour.. debian? notes./.
	xdg-mime default evince.desktop application/pdf
	alias mc='EDITOR=vim'

    alt-shift-h	show dir history
    alt-y/alt-u (navigate history?)

    alt+?/alt-s/ctrl-s	search

    ctrl-space		calc size
    ctrl - x c	    chmod
    ctrl - x o	    chown

    alias mc='. /usr/libexec/mc/mc-wrapper.sh' - will stay in dir after exit

    Ref: http://klimer.eu/2015/05/01/use-midnight-commander-like-a-pro/
	 man mc
	 ...

NOTE: I run mc inside tmux and the shifted function keys did not work as
expected. Use midnight commanders Learn Keys dialog to fix this