macOS Midnight Commander – Avoid Unselect File Dialog When Pressing Minus Sign
itermkeyboard
When I try to type a minus character (e.g. open -a TextEdit) in the MC subshell, instead of minus the Unselect dialog pops up.
I'm using iTerm2 and Midnight commander via Homebrew.
Best Answer
You need to edit ~/.config/mc/ini config file and look for only_leading_plus_minus entry. By default it is set to false which causes this behavior. If you set it to true
only_leading_plus_minus=true
then - will trigger Unselect dialog only if - is the first character you type which pretty much would never be a problem. If you do not have only_leading_plus_minus just add it. Make sure you do not have Auto save setup enabled in your config and if you do, quit all instances of mc prior editing your ini.
Best Answer
You need to edit
~/.config/mc/ini
config file and look foronly_leading_plus_minus
entry. By default it is set tofalse
which causes this behavior. If you set it totrue
then
-
will triggerUnselect
dialog only if-
is the first character you type which pretty much would never be a problem. If you do not haveonly_leading_plus_minus
just add it. Make sure you do not haveAuto save setup
enabled in your config and if you do, quit all instances ofmc
prior editing yourini
.