[mc] How to configure keyboard shortcuts

mi codejodler at gmx.ch
Thu Jan 29 23:50:35 UTC 2026


> At least for /X11/xkb it's named "dot".

Good try ! Let's seee


ok here is some enlightenmend:

(1) I changed my users keymap code to ctrl-h which to avoid the dot problem.

I also deleted the existing ctrl-h from this file (which is alternate for 'backspace' like, del one char) just to be sure. 

But that won't work either and syncing the other panel was still alt-i.

(2) Then i went to the system file and i changed /etc/mc/mc.keymap file to ctrl-h and that won't work either.

(3) Then i tried inserting alt-h here and that worked. 

(4) So i settled with Alt-. in the system file and that works. It also turned out that alt-dot is a valid syntax too. 
 
(Well, i found that alt-dot is actually already configured as 'show hidden' so i also had to reconfigure that to alt-h.)

Now i think that i was unlucky to try exactly ctrl-h because thats already configured as backspace (for the readline/commandline field at bottom) most probably hardcoded in the mc inbuilt keymap. 

My other mistake was to think this all works in override mode when it actually works in EXOR mode, adding things up. Thus, a basic commandline action like backspace will always be catched first. Maybe the same holds for ctrl-. (or ctrl-dot) although i cannot figure out where it's been used. 

I tried next to change some things in the ~/.config/mc/mc.keymap file again, to should-work values, but nothing worked. I even started mc with the -K option but nope.


Findings summary:

* A newly assigned combo in the users file does is not overriding the system default, but adding to it. It makes sense, as there are several actions with multiple key shortcuts possible, seperated by a ; char.

* It seems as though a users ~/.config/mc/mc.keymap file is read at all ? 

That reminds me of another request here on this list, about the fileshighlight.ini file, where i though that such a file in ~/.config/mc is not evaulated at all.

 --> Can we identify if users config files are read at all ?

There does not seem any debug output on stderr does it ? Like, i could make these files non-readable and we'll see if mc barfs.







 


 



ps. I just now  also found that ctrl-space calculates the dir space but when finished, the result immediately disappears ...


More information about the mc mailing list