You are not logged in.

#1 2011-10-31 23:02:43

puntigamer
Member
Registered: 2011-10-20
Posts: 5

how to change mc keybinding from '\'

Hallo,

I'm new to mc, but I already love it! I still have 2 questions:
1. how to change directory upwards/downwards with single keys (like in vifm)? Is it possible?
2. how to modify the '\' (backslash) key-bind to something else? I only can type '\' pressing (altgr+q) with my Hungarian keyboard, so this important function doesn't work for me.

Thank you in advice wink

Offline

#2 2011-10-31 23:30:42

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: how to change mc keybinding from '\'

1. Ctrl PageUp / Ctrl PageDown.
2. I guess - and + do this (select / deselect files).

And a quote from FAQ:

2.8 How do I change the key bindings?

   There is no generic way to reconfigure the key bindings.  You can use
   the "Learn Keys" dialog to assign keys to some actions listed in that
   dialog.  However, most actions cannot be redefined to use different
   keys.

Still, if your terminal is configured properly, you should not experience severe problems adopting to MC. (Sometimes a keystroke works fine in urxvt and doesn't in xterm, though...)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2011-11-01 10:02:40

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: how to change mc keybinding from '\'

From man mc 'Redefine hotkey bindings':
Hotkey bindings may be read from external file (keymap-file).

The default one is /etc/mc/mc.keymap. You can copy it to ~/.local/share/mc/mc.keymap and make the changes there.
The keymap-file in ~/.local/share/mc will take precedence over the one in /etc/mc.

The backlash key to unselect is the same as the minus key (-) for the same function. So you can use that without changing key bindings.

Last edited by berbae (2011-11-01 10:29:32)

Offline

#4 2011-11-01 12:23:55

puntigamer
Member
Registered: 2011-10-20
Posts: 5

Re: how to change mc keybinding from '\'

ok, but I need to press ctrl+\, but I can't, because \ = altgr+q, and ctrl+altgr+q = q (in the terminal)
I hope you can understand that, it is not too easy to declare smile

ctrl+\ to reach FTP quicklist

Last edited by puntigamer (2011-11-01 12:25:37)

Offline

#5 2011-11-01 16:00:13

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: how to change mc keybinding from '\'

With my keyboard I get baskslash with altgr+8
And the combination ctrl+altgr+8 works and gives the Hotlist function, defined as ctrl+backslash in mc.keymap.
The keys ctrl altgr and 8 are to be pressed simultaneously.

But you can redefine another binding for the Hotlist function:

just copy /etc/mc/mc.keymap to ~/.local/share/mc/mc.keymap
edit ~/.local/share/mc/mc.keymap changing the line:
HotList = ctrl-backslash
to another key combination.

Then exit/launch mc to use the new key binding.

Offline

Board footer

Powered by FluxBB