[SOLVED] Midnight Commander 4.8.26 keymap not working
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Since the recent update, Midnight Commander is no longer honoring my keymap. The custom bindings are stored in ~/.config/mc/mc.keymap, and I've updated the file to bring in the latest changes from /etc/mc/mc.default.keymap. The main change in my file is to redefine ChangePanel from tab to ctrl-f, and then Complete from alt-tab to tab. With this latest version, ctrl-f doesn't do anything, and the tab key changes panels despite my settings. What I've done to try to debug:
Removed any potential collisions between my custom bindings and existing ones in mc.keymap.
Changed some other keybindings in the file. Those didn't have any effect either.
Tried manually specifying the keymap file at launch using the -K option. Still no effect.
So it seems like mc is just completely ignoring the keymap file now. Is anyone else having the same issue?
I'm not sure if this is a change in mc but after playing around some more I'm able to get custom key mappings to work.
I removed the symbolic link /etc/mc/mc.keymap and created a modified copy of /etc/mc.default.keymap as ~/.config/mc/mc.keymap. It honored my change as a regular user. When I used mc as root the unaltered/original keymap was in effect.
I'm not sure if this is a change in mc but after playing around some more I'm able to get custom key mappings to work.
I removed the symbolic link /etc/mc/mc.keymap and created a modified copy of /etc/mc.default.keymap as ~/.config/mc/mc.keymap. It honored my change as a regular user. When I used mc as root the unaltered/original keymap was in effect.
Maybe the symlink is the issue?
Hm, it doesn't work here. I installed 4.8.26 again and removed the symbolic link, and my keymap still has no effect. It works fine on 4.8.25. In any case, the user keymap should take precedence over the system one. Just out of curiosity, what did you change in the keymap file to test?
Circling back to this thread, I figured out the issue. The name of the top section in mc.keymap changed names from [main] to [filemanager] in the most recent versions of mc, and I failed to update that in my user config (~/.config/mc/mc.keymap). A vimdiff comparing my user config to /etc/mc/mc.default.keymap revealed that right away. Should have checked that earlier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.