有沒有辦法改變午夜指揮官的快速鍵?

有沒有辦法改變午夜指揮官的快速鍵?

我在網路上沒有找到任何有關該主題的內容。

.mc/ini看起來與問題相關的唯一一行是keymap=mc.keymap,但我不知道如何處理它。

答案1

Okiedokie...讓我們看看

$ 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 中

相關內容