Y
Y
Yuri2012-08-16 09:03:59
linux
Yuri, 2012-08-16 09:03:59

How to change hotkeys in mc?

Google it, honestly. But I did not find anything simpler than rebuilding mc.
mc is completely satisfied, but I want to redo almost all hot keys related to navigation, and it is desirable to remove the command line, because. it only interferes (if you accidentally press a letter on the keyboard, a command starts to be typed), because there is a mechanism for temporarily hiding mc (Ctrl + O) to access the full-fledged console.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SAkada, 2012-08-16
@ploop

In versions up to 4.6.1 inclusive, you cannot change the settings, as already mentioned above, only in the sources and through recompilation. I can’t say in which version the ability to configure hot keys appeared (too lazy to look), but in versions 4.8.x it definitely is. All default settings are stored in the file:

/etc/mc/mc.keymap

In the same place it is possible to peep, what in general are possible basically. In this case, local settings are stored in a file in the home directory:
~/.config/mc/mc.keymap

For example, this is how my long-standing desire is realized to make mc behave like a headlight when pressing left / right in the panels, so that when you press left, you go one page back, and right - one page forward:
[panel]
Left =
Right =
PageUp = pgup; alt-v; left
PageDown = pgdn; ctrl-v; right

The method works exactly on mc 4.8.1 (gentoo).
More details in the mana to mc.

D
dgeliko, 2012-08-16
@dgeliko

As far as I know, this is impossible. They are strictly written in the source code, you can merge the raw ones and see for yourself ...

N
Nikolai Turnaviotov, 2012-08-16
@foxmuldercp

From socially useful options - to make a patch that would allow you to redefine hotkeys and send them to developers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question