Midnight Commander: go to parent directory with Backspace
Total Commander has a nice feature: if you press Backspace, it steps back to the parent directory. How to have this shortcut in Midnight Commander?
This thing has bugged me for years! But, I was lazy to look it up. Today I got fed up and made a Google search. Guess what. I had the answer in 5 minutes…
The local config files of MC are here:
~/.config/mc. The global ones are located at
/etc/mc. I like to access the local config files at ~/.mc, so first I create a symbolic link:
$ cd $ ln -s ~/.config/mc .mc $ cd .mc $ cp /etc/mc/mc.keymap . $ vi mc.keymap
Modify this line:
# new value: CdParentSmart = backspace
Originally this line was put in comment.
Restart MC and enjoy the new feature. If you wrote something in the mini shell, you can still delete it with the Backspace. If the mini shell is empty, Backspace makes MC jump back to the parent directory.
My MC version is 4.8.13. You can verify yours with “