summaryrefslogtreecommitdiff
path: root/080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet
diff options
context:
space:
mode:
Diffstat (limited to '080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet')
-rw-r--r--080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md61
1 files changed, 61 insertions, 0 deletions
diff --git a/080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md b/080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md
new file mode 100644
index 0000000..eedc66a
--- /dev/null
+++ b/080_blog/00010_Various-Cheat-Sheets/00110_Midnight-Commander-Cheatsheet/index.md
@@ -0,0 +1,61 @@
+###>>>KWD midnight commander cheatsheet, mc cheatsheet, mc shortcuts, midnight commander shortcuts
+###>>>DSC Cheatsheet for Midnight Commander summarizing the most useful shortcuts.
+Midnight Commander Cheatsheet
+=============================
+
+A short cheat-sheet summarizing midnight commander's most useful shortcut keys.
+
+Basic Navigation
+----------------
+ tab switch active panel
+ up/down select previous/next rown
+ return open selected directory
+ alt-o open selected directory on other panel
+
+View
+----
+ alt-. toggle hidden files
+ ctrl-o toggle console
+ alt-t toggle listing mode
+ alt-i sync with other panel
+ ctrl-u swap panels
+
+Miscellaneous
+-------------
+ shift-f6 rename, filling in the current filename
+ insert/ctrl-t/+/\/* selections
+ esc-tab auto complete
+ ctrl-enter / alt-enter copy currently selected filename to console
+ Ctrl + Shift + Enter copy full path
+
+ alt-shift-h show dir history
+ alt-y/alt-u navigate history
+
+ alt+?/alt-s/ctrl-s searches
+
+ ctrl-space calculte size
+ ctrl - x c chmod
+ ctrl - x o chown
+
+Troubleshooting / Extras
+------------------------
+Adding this to your _.bashrc_ will let _mc_ stay in the current directory after exiting:
+
+ alias mc='. /usr/libexec/mc/mc-wrapper.sh'
+
+I run _midgnight commander_ inside _tmux_ and the shifted function keys did not work as
+expected. Use midnight commanders _Learn Keys_ dialog to fix this.
+
+Set default viewer for pdf:
+
+ xdg-mime default evince.desktop application/pdf
+
+Set default editor:
+
+ alias mc='EDITOR=vim'
+
+Reference
+---------
+
+* http://klimer.eu/2015/05/01/use-midnight-commander-like-a-pro/
+* man mc