Midnight Commander: Difference between revisions
Line 42: | Line 42: | ||
{| class="wikitable" width="100%" |
{| class="wikitable" width="100%" |
||
|- |
|- |
||
|width=" |
|width="150px"| |
||
<u>{{kb|C-k}}</u><br/> |
<u>{{kb|C-k}}</u><br/> |
||
<u>{{kb|C-l}}</u><br/> |
<u>{{kb|C-l}}</u><br/> |
||
Line 75: | Line 75: | ||
{| class="wikitable" width="100%" |
{| class="wikitable" width="100%" |
||
|- |
|- |
||
|width=" |
|width="150px"| |
||
{{kb|A-Enter}}<br/> |
{{kb|A-Enter}}<br/> |
||
{{kb|C-S-Enter}}<br/> |
{{kb|C-S-Enter}}<br/> |
||
Line 88: | Line 88: | ||
| |
| |
||
Paste current selection<br/> |
Paste current selection<br/> |
||
Paste fullpath current selection<br/> |
'''Paste fullpath current selection'''<br/> |
||
Auto-complete<br/> |
Auto-complete<br/> |
||
Paste tagged files<br/> |
Paste tagged files<br/> |
||
Line 104: | Line 104: | ||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
||
|width=" |
|width="150px"| |
||
{{kb|Tab}}<br/> |
{{kb|Tab}}<br/> |
||
{{kb|Ins}} ''or'' {{kb|C-t}}<br/> |
{{kb|Ins}} ''or'' {{kb|C-t}}<br/> |
Revision as of 22:56, 18 January 2011
mc or Midnight Commander is a powerful file manager working in a shell terminal.
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
VirtualFS
- Shell filesystem: /#sh:[user@]machine[:options]/[remote_dir]
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 M-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 like C-n (as in Vim).
Old version — This can be done with Options... → Learn Keys...
Newer version — The learn keys trick does not seem to work anymore. Remove the learn key line from ~/.mc/ini and instead edit all files /etc/mc/mc.keymap* as follows:
PanelMoveDown = down ... InputComplete = alt-tab; ctrl-n ... TreeMoveDown = down
- Lynx motion — This is a nice option to enable in the configuration menu. When enabled, enter a directory with right and exit a directory with left.
- Frequently used keyboard shortcuts (custom shortcuts defined with Learn Keys... are underlined)
General:
Shell Command Line
|
Directory panels
|
Official repository
Besides Ubuntu repository, the official one is here. To add it:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F82FBD49
Add file /etc/apt/sources.list.d:
deb http://ppa.launchpad.net/zyv/ppa/ubuntu lucid main deb-src http://ppa.launchpad.net/zyv/ppa/ubuntu lucid main
Then upgrade if needed:
sudo apt-get update
sudo apt-get upgrade