有没有办法在午夜指挥官中更改快捷方式?


14

我在Internet上没有找到关于该主题的任何内容。.mc/ini看起来与该问题相关的唯一一行是,keymap=mc.keymap但我不知道该如何处理。

Answers:


22

Okiedokie ...让我们看看

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

第八部分...可能吗?我们看看吧

man 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

有关更多信息,请阅读“密钥(man mc)”部分以及其后的三个部分。


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

谢谢。什么是男人节?
woky 2014年

@woky它是troff的输出(man页面格式)正则表达式管道
ЯрославРахматуллин

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.