📄 bindings
字号:
# Midnight Commander 3.0 extension file# Warning: Structure of this file has changed completely with version 3.0## All lines starting with # or empty lines are thrown away.# Lines starting in the first column should have following format:## keyword/descNL, i.e. everything after keyword/ until new line is desc## keyword can be: ## shell (desc is, when starting with a dot, any extension (no wildcars), # i.e. matches all the files *desc . Example: .tar matches *.tar;# if it doesn't start with a dot, it matches only a file of that name)## regex (desc is an extended regular expression)# Please note that we are using the GNU regex library and thus# \| matches the literal | and | has special meaning (or) and# () have special meaning and \( \) stand for literal ( ).## type (file matches this if `file %f` matches regular expression desc# (the filename: part from `file %f` is removed))## directory (matches any directory matching regular expression desc)## include (matches an include directive)## default (matches any file no matter what desc is)## Other lines should start with a space or tab and should be in the format:## keyword=commandNL (with no spaces around =), where keyword should be: ## Open (if the user presses Enter or doubleclicks it), ## View (F3), Edit (F4)## Include is the keyword used to add any further entries from an include/# section## command is any one-line shell command, with the following substitutions:## %% -> % character# %p -> name of the current file (without path, but pwd is its path)# %f -> name of the current file. Unlike %p, if file is located on a # non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,# then the file will be temporarily copied into a local directory# and %f will be the full path to this local temporal file.# If you don't want to get a local copy and want to get the# virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then# use %d/%p instead of %f.# %d -> name of the current directory (pwd, without trailing slash)# %s -> "selected files", i.e. space separated list of tagged files if any# or name of the current file# %t -> list of tagged files# %u -> list of tagged files (they'll be untaged after the command)## (If these 6 letters are in uppercase, they refer to the other panel.# But you shouldn't have to use it in this file.)### %cd -> the rest is a path mc should change into (cd won't work, since it's# a child process). %cd handles even vfs names.## %view -> the command you type will be piped into mc's internal file viewer# if you type only the %view and no command, viewer will load %f file# instead (i.e. no piping, so it is different to %view cat %f)# %view may be directly followed by {} with a list of any of# ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for# text using backspace for bold and underscore) and unform# (no highlighting for nroff sequences) separated by commas.## %var -> You use it like this: %var{VAR:default}. This macro will expand# to the value of the VAR variable in the environment if it's set# otherwise the value in default will be used. This is similar to# the Bourne shell ${VAR-default} construct.## Rules are applied from top to bottom, thus the order is important.# If some actions are missing, search continues as if this target didn't# match (i.e. if a file matches the first and second entry and View action# is missing in the first one, then on pressing F3 the View action from# the second entry will be used. default should catch all the actions.## Any new entries you develop for you are always welcome if they are# useful on more than one system. You can send your modifications# by e-mail to mc-devel@gnome.org### Changes ##### Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>### TODO ##### Postscript Open: ps2svga [gs -DEVICE=jpeg|zgv or something]# Images asciiview# # All X Apps [Nothing/Warning] if no DISPLAY# Not found [Default/Warning]# Empty Output [Default/Warning]# Edit: CopyOut+EDIT+CopyIn# Security Check gzip/bzip EDIT (mktemp)# # Maybe: Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.# Bmpshell/.bmp View=mgaview %f# Bmpshell/.BMP View=mgaview %f# Tgashell/.tga View=mgaview %f# Tgashell/.TGA View=mgaview %f# Tiffshell/.tif View=mgaview %f# Tiffshell/.TIF View=mgaview %f# Pcxshell/.pcx View=mgaview %f# Pcxshell/.PCX View=mgaview %f# Gifshell/.gif View=mgaview %f# Gifshell/.GIF View=mgaview %f# XWDshell/.xwd View=mgaview %f# XWDshell/.XWD View=mgaview %f# Xpmshell/.xpm View=mgaview %f# Xpmshell/.XPM View=mgaview %f# Jpgshell/.jpg View=mgaview %f# Jpgshell/.jpeg View=mgaview %f# Jpgshell/.JPG View=mgaview %f# Jpgshell/.JPEG View=mgaview %f# Pngshell/.png View=mgaview %f# Pngshell/.PNG View=mgaview %f# Pgmshell/.pgm View=mgaview %f# Pbmshell/.pbm View=mgaview %f# Ppmshell/.ppm View=mgaview %f# Pgmshell/.PGM View=mgaview %f# Pbmshell/.PBM View=mgaview %f# Ppmshell/.PPM View=mgaview %f# ZMGshell/.zmg View=mgaview %f# ZMGshell/.ZMG View=mgaview %f# LBMshell/.lbm View=mgaview %f# LBMshell/.LBM View=mgaview %f# LBMshell/.iff View=mgaview %f# LBMshell/.IFF View=mgaview %f# HRZshell/.hrz View=mgaview %f# HRZshell/.HRZ View=mgaview %f# EPAshell/.epa View=mgaview %f# EPAshell/.EPA View=mgaview %f# EPAshell/.lay View=mgaview %f# EPAshell/.LAY View=mgaview %f# PICshell/.pic View=mgaview %f# PICshell/.PIC View=mgaview %f# CELshell/.cel View=mgaview %f# CELshell/.CEL View=mgaview %f# HSI RAWshell/.raw View=mgaview %f# HSI RAWshell/.RAW View=mgaview %f# DISshell/.dis View=mgaview %f# DISshell/.DIS View=mgaview %f# QRTshell/.qrt View=mgaview %f# QRTshell/.QRT View=mgaview %f# MTVshell/.mtv View=mgaview %f# MTVshell/.MTV View=mgaview %f# Gimp PATshell/.pat View=mgaview %f# Gimp PATshell/.PAT View=mgaview %f# Vistashell/.vst View=mgaview %f# Vistashell/.VST View=mgaview %f# PIXshell/.pix View=mgaview %f# PIXshell/.PIX View=mgaview %f# SGI RGBshell/.rgb View=mgaview %f# SGI RGBshell/.RGB View=mgaview %f# ColoRIXshell/.rix View=mgaview %f# ColoRIXshell/.RIX View=mgaview %f# ColoRIXshell/.sci View=mgaview %f# ColoRIXshell/.SCI View=mgaview %f# ColoRIXshell/.scz View=mgaview %f# ColoRIXshell/.SCZ View=mgaview %f# Dr Halo CUTshell/.cut View=mgaview %f# Dr Halo CUTshell/.CUT View=mgaview %f# SUN RASshell/.ras View=mgaview %f# SUN RASshell/.RAS View=mgaview %f# SUN RASshell/.im1 View=mgaview %f# SUN RASshell/.IM1 View=mgaview %f# SKAshell/.ska View=mgaview %f# SKAshell/.SKA View=mgaview %f# PSDshell/.psd View=mgaview %f# PSDshell/.PSD View=mgaview %f### Sources #### Cshell/.c Open=sensible-editor %f# Fortranshell/.f Open=sensible-editor %f # Headershell/.h Open=sensible-editor %f# Objectshell/.o #Open=sensible-pager %f View=%view{ascii} file %f && nm %f# Asmshell/.s Open=sensible-editor %f# C++regex/\.(C|cc)$ Open=sensible-editor %f### Documentation #### Texinforegex/\.(te?xi|texinfo)$# GNU Info pagetype/^Info\ text Open=info -f %fshell/.info Open=info -f %f# Manual page# Exception - .so libraries are not manual pagesregex/\.(so|so\.[0-9\.]*)$ View=%view{ascii} file %f && nm %fregex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|n)|\.man)$ Open=nroff -Tlatin1 -mandoc %f | sensible-pager View=%view{ascii,nroff} nroff -Tlatin1 -mandoc %f# Troff with me macros.# Exception - "read.me" is not a nroff file.shell/read.me Open= View=shell/.me Open=nroff -Tlatin1 -me %f | sensible-pager View=%view{ascii,nroff} nroff -Tlatin1 -me %f# Troff with ms macros.shell/.ms Open=nroff -Tlatin1 -ms %f | sensible-pager View=%view{ascii,nroff} nroff -Tlatin1 -ms %f# Manual page - compressedregex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.g?[Zz]$ Open=gzip -dc %f | nroff -Tlatin1 -mandoc | sensible-pager View=%view{ascii,nroff} case %d in /var/log*) gzip -dc %f ;; *) gzip -dc %f | nroff -Tlatin1 -mandoc ;; esacregex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz$ Open=bzip -dc %f | nroff -Tlatin1 -mandoc | sensible-pager View=%view{ascii,nroff} bzip -dc %f | nroff -Tlatin1 -mandocregex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz2$ Open=bzip2 -dc %f | nroff -Tlatin1 -mandoc | sensible-pager View=%view{ascii,nroff} bzip2 -dc %f | nroff -Tlatin1 -mandoc### Images ###type/^GIF Include=imagetype/^JPEG Include=imagetype/^PC\ bitmap Include=imagetype/^PNG Include=imagetype/^TIFF Include=imagetype/^PBM Include=imagetype/^PGM Include=imagetype/^PPM Include=imagetype/^Netpbm Include=imageshell/.xcf Open=gimp %fshell/.xbm Include=image #Open=bitmap %fshell/.xpm Include=image View=sxpm %finclude/image Open=see %f #Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (ee %f &); fi View=%view{ascii} identify %f #View=%view{ascii} asciiview %f### Sound files ###regex/\.(wav|WAV|Wav|snd|SND|Snd|voc|VOC|Voc|au|AU|Au)$ Open=run-mailcap audio/x-wav:%f #Open=play %fregex/\.(mod|MOD|Mod|s3m|S3M|S3m|xm|XM|Xm)$ Open=run-mailcap application/x-mod:%f #Open=mikmod %f #Open=tracker %fregex/\.(wav22|WAV22)$ Open=vplay -s 22 %fregex/\.(mp3|MP3|Mp3)$ Open=run-mailcap audio/mpeg:%f #Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'regex/\.(ogg|OGG|Ogg)$ Open=run-mailcap application/x-ogg:%f & #Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi View=%view{ascii} ogginfo %sregex/\.(midi?|MIDI?|Midi?|rmid?|RMID?|Rmid?)$ Open=run-mailcap audio/midi:%f #Open=timidity %f### Video ###regex/\.(avi|AVI|Avi)$ Include=videoregex/\.(asf|ASF|Asf)$ Include=video
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -