क्या आधी रात के कमांडर में शॉर्टकट बदलने का एक तरीका है?


14

मुझे इंटरनेट पर इस विषय पर कुछ भी नहीं मिला है। इस .mc/iniप्रश्न से संबंधित एक ही पंक्ति है, keymap=mc.keymapलेकिन मुझे नहीं पता कि इसके साथ क्या करना है।

जवाबों:


22

Okiedokie ... देखते हैं

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

8 वां खंड ... क्या यह संभव है? चलो देखते हैं

मैन एमसी (स्क्रॉल, स्क्रॉल, स्क्रॉल)

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 को सहेजें

अधिक जानकारी के लिए, कुंजी ( मैन एमसी ) अनुभाग और उसके बाद के तीन खंड पढ़ें ।


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

धन्यवाद। पुरुष-वर्ग क्या है?
— वॉकी

@woky यह ट्रॉफ आउटपुट (मैन पेज फॉर्मेट) के लिए एक रेगेक्स पाइप है
— yрослав Рахматуллин

हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.