미드나잇 커맨더 단축키 바꾸는 방법 없나요?

미드나잇 커맨더 단축키 바꾸는 방법 없나요?

나는 인터넷에서 그 주제에 관한 어떤 것도 찾지 못했습니다.

.mc/ini질문과 관련된 것으로 보이는 유일한 줄은 이지만 keymap=mc.keymap어떻게 해야할지 모르겠습니다.

답변1

오키도키... 보자

$ man-section mc | head -n20
mc (1)
--
 Name
 Usage
 Description
 Options
 Overview
 Mouse support
 Keys
 Redefine hotkey bindings

8절... 그게 가능할까요? 한번 보자

남자 MC(스크롤,스크롤,스크롤)

Redefine hotkey bindings
    Hotkey bindings may be read from external file (keymap-file).  A keymap-
    file is searched on the following algorithm  (to the first one found):

     1) command line option -K <keymap> or --keymap=<keymap>
     2) Environment variable MC_KEYMAP
     3) Parameter keymap in section [Midnight-Commander] of config file.
     4) File ~/.config/mc/mc.keymap
     5) File /etc/mc/mc.keymap
     6) File /usr/share/mc/mc.keymap

빙고!

cp /etc/mc/mc.keymap ~/.config/mc/

이제 원하는 대로 키 매핑을 편집하고 완료되면 ~/.config/mc/mc.keymap을 저장하세요.

자세한 내용은 키(남자 MC) 섹션과 그 다음 세 섹션이 있습니다.


$ cat /home/jaroslav/bin/man-sections 
#!/bin/sh
MANPAGER=cat man $@ | grep -E '^^[[1m[A-Z]{3,}'

답변2

Ubuntu에서 키맵은 /etc/mc/mc.keymap에 있습니다.

관련 정보