Midnight Commander: Difference between revisions
(moved from Linux Commands page) |
|||
Line 17: | Line 17: | ||
* '''Gnome-Terminal''' — To solve the conflicts with '''Gnome Terminal''', disable the ''Terminal menu shortcut key'' (to enable <tt>F10</tt>) and ''Menu Access Keys'' (to enable <tt>A-h</tt>...) in ''Gnome-Terminal''. |
* '''Gnome-Terminal''' — To solve the conflicts with '''Gnome Terminal''', disable the ''Terminal menu shortcut key'' (to enable <tt>F10</tt>) and ''Menu Access Keys'' (to enable <tt>A-h</tt>...) in ''Gnome-Terminal''. |
||
* '''Auto-Complete''' — The usual shortcut for auto-complete '''Meta-Tab''' (i.e. '''Alt-Tab''') doesn't work in graphical environment because it is used for switching between windows. As a replacement, one can use '''Esc-Tab''', or can define a new shortcut with <tt>Options... → Learn Keys...</tt> (e.g. use '''Ctrl-N''' as in ''Vim''). |
* '''Auto-Complete''' — The usual shortcut for auto-complete '''Meta-Tab''' (i.e. '''Alt-Tab''') doesn't work in graphical environment because it is used for switching between windows. As a replacement, one can use '''Esc-Tab''', or can define a new shortcut with <tt>Options... → Learn Keys...</tt> (e.g. use '''Ctrl-N''' as in ''Vim''). |
||
* Frequently used keyboard shortcut |
|||
{| class="wikitable" |
|||
|- |
|||
!key!!description |
|||
|- |
|||
⚫ | |||
|- |
|||
|<tt>Esc-Tab</tt><br/><tt>Ctrl-N</tt>||Auto-Complete<br/>Auto-Complete (custom) |
|||
|- |
|||
⚫ | |||
|- |
|||
|<tt>Ins</tt>||select highlighted file and move to next |
|||
|- |
|||
|<tt>Ctrl-\</tt>||Open directory menu |
|||
|- |
|||
|<tt>Ctrl-X D</tt>||Compare directories |
|||
|- |
|||
⚫ | |||
|- |
|||
|<tt>Ctrl-O</tt>||Hide panels |
|||
|- |
|||
|<tt>Meta-*</tt>||Reverse selection |
|||
|- |
|||
|<tt>Alt-?</tt>||Find file |
|||
|- |
|||
|<tt>Ctrl-X Q</tt>||Quick view |
|||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
|<tt>Ctrl-X S</tt>||Make symlink |
|||
|} |
|||
⚫ | |||
⚫ | |||
<table> |
<table> |
||
<tr> |
<tr valign="top"> |
||
<td |
<td> |
||
'''General:'''<br/> |
'''General:'''<br/> |
||
{| class="wikitable" width="100%" |
{| class="wikitable" width="100%" |
||
|- |
|- |
||
|width=" |
|width="130px"| |
||
<u>{{kb|C-k}}</u><br/> |
<u>{{kb|C-k}}</u><br/> |
||
<u>{{kb|C-l}}</u><br/> |
<u>{{kb|C-l}}</u><br/> |
||
{{kb|F10}}<br/> |
|||
{{kb|C-o}}<br/> |
|||
{{kb|C-x}}d<br/> |
|||
{{kb|C-r}}<br/> |
|||
{{kb|C-o}}<br/> |
|||
{{kb|M-*}}<br/> |
|||
{{kb|A-?}}<br/> |
|||
{{kb|C-x}}q<br/> |
|||
{{kb|C-x}}c<br/> |
|||
{{kb|C-x}}o<br/> |
|||
{{kb|C-x}}s |
|||
| |
| |
||
Down<br/> |
Down<br/> |
||
Up<br/> |
Up<br/> |
||
⚫ | |||
⚫ | |||
Compare directories<br/> |
|||
⚫ | |||
Hide panels<br/> |
|||
Reverse selection<br/> |
|||
Find file<br/> |
|||
Quick view<br/> |
|||
⚫ | |||
⚫ | |||
Make symlink |
|||
|} |
|} |
||
Line 71: | Line 58: | ||
{| class="wikitable" width="100%" |
{| class="wikitable" width="100%" |
||
|- |
|- |
||
|width=" |
|width="130px"| |
||
{{kb|A-Enter}}<br/> |
{{kb|A-Enter}}<br/> |
||
{{kb|C-S-Enter}}<br/> |
{{kb|C-S-Enter}}<br/> |
||
{{kb| |
{{kb|M-Tab}} ''or'' <u>{{kb|C-n}}</u><br/> |
||
{{kb|C-x}} t<br/> |
{{kb|C-x}} t<br/> |
||
{{kb|C-x}} {{kb|C-t}}<br/> |
{{kb|C-x}} {{kb|C-t}}<br/> |
||
Line 81: | Line 68: | ||
{{kb|A-p}}<br/> |
{{kb|A-p}}<br/> |
||
{{kb|A-n}}<br/> |
{{kb|A-n}}<br/> |
||
{{kb|A-h}} |
{{kb|A-h}} |
||
| |
| |
||
Paste current selection<br/> |
|||
Paste fullpath current selection<br/> |
|||
Auto-complete<br/> |
Auto-complete<br/> |
||
Paste tagged files<br/> |
|||
Paste tagged files (other panel)<br/> |
|||
Paste current path<br/> |
|||
Paste current path (other panel)<br/> |
|||
Previous command in history<br/> |
Previous command in history<br/> |
||
Next command in history<br/> |
Next command in history<br/> |
||
Command history |
Command history |
||
|} |
|} |
||
</td> |
</td> |
||
<td> |
<td> |
||
Line 99: | Line 87: | ||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
||
|width=" |
|width="130px"| |
||
{{kb|Tab}}<br/> |
{{kb|Tab}}<br/> |
||
{{kb| |
{{kb|Ins}} ''or'' {{kb|C-t}}<br/> |
||
{{kb|A-g}}<br/> |
{{kb|A-g}}<br/> |
||
{{kb|A-r}}<br/> |
{{kb|A-r}}<br/> |
||
Line 121: | Line 109: | ||
{{kb|End}} ''or'' {{kb|A->}}<br/> |
{{kb|End}} ''or'' {{kb|A->}}<br/> |
||
{{kb|C-PgUp}}<br/> |
{{kb|C-PgUp}}<br/> |
||
{{kb|C-PgDn}} |
{{kb|C-PgDn}} |
||
| |
| |
||
Panel switch<br/> |
Panel switch<br/> |
||
Line 144: | Line 132: | ||
End<br/> |
End<br/> |
||
Cd ..<br/> |
Cd ..<br/> |
||
Cd current selection |
Cd current selection |
||
|} |
|} |
||
</td> |
</td> |
Revision as of 22:18, 1 July 2010
mc or Midnight Commander is a powerful file manager working in a shell terminal.
ini file
- mc will only save the option ini file if there is a directory ~/.mc in home directory:
mkdir ~/.mc
- To use vi as standard editor/viewer
- First menu Options → Configuration... → uncheck use internal edIt and Use internal view.
- Next, at the end of file .mc/bindings:
default/*
Open=
View=view %f
Edit=%var{EDITOR:vi} %f
Keyboard shorcuts
- Gnome-Terminal — To solve the conflicts with Gnome Terminal, disable the Terminal menu shortcut key (to enable F10) and Menu Access Keys (to enable A-h...) in Gnome-Terminal.
- Auto-Complete — The usual shortcut for auto-complete Meta-Tab (i.e. Alt-Tab) doesn't work in graphical environment because it is used for switching between windows. As a replacement, one can use Esc-Tab, or can define a new shortcut with Options... → Learn Keys... (e.g. use Ctrl-N as in Vim).
- Frequently used keyboard shortcuts (custom shortcuts defined with Learn Keys... are underlined)
General:
Shell Command Line
|
Directory panels
|
External links:
- Cool review of mc in action
- The GNOME Commander, a X alternative of mc under Gnome
- Krusader, a X alternative of mc under KDE