mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* lib/mc.ext.in: Comment changes. Remove rules for programs -
they were only used in obsolete frontends. Don't ever use %view without commands - it's slower and loses user settings, e.g. hex mode. Put shared libraries before man pages and read.me before .me macros so that they match correctly. Use nm for shared libraries. Add rules for StarOffice and AbiWord.
This commit is contained in:
parent
71620c6a9e
commit
24e01579a8
@ -1,3 +1,12 @@
|
|||||||
|
2001-07-19 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* lib/mc.ext.in: Comment changes. Remove rules for programs -
|
||||||
|
they were only used in obsolete frontends. Don't ever use %view
|
||||||
|
without commands - it's slower and loses user settings, e.g.
|
||||||
|
hex mode. Put shared libraries before man pages and read.me
|
||||||
|
before .me macros so that they match correctly. Use nm for
|
||||||
|
shared libraries. Add rules for StarOffice and AbiWord.
|
||||||
|
|
||||||
2001-07-14 Pavel Roskin <proski@gnu.org>
|
2001-07-14 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.in: Bump version to 4.5.54a.
|
* configure.in: Bump version to 4.5.54a.
|
||||||
|
107
lib/mc.ext.in
107
lib/mc.ext.in
@ -12,10 +12,10 @@
|
|||||||
# i.e. matches all the files *desc . Example: .tar matches *.tar;
|
# 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)
|
# if it doesn't start with a dot, it matches only a file of that name)
|
||||||
#
|
#
|
||||||
# regex (desc is a regular expression)
|
# regex (desc is an extended regular expression)
|
||||||
# Please note that we are using the GNU regex library and thus
|
# Please note that we are using the GNU regex library and thus
|
||||||
# \| matches the literal | and | has special meaning (or) and
|
# \| matches the literal | and | has special meaning (or) and
|
||||||
# () have special meaning and \( \) are standing for literal ( ).
|
# () have special meaning and \( \) stand for literal ( ).
|
||||||
#
|
#
|
||||||
# type (file matches this if `file %f` matches regular expression desc
|
# type (file matches this if `file %f` matches regular expression desc
|
||||||
# (the filename: part from `file %f` is removed))
|
# (the filename: part from `file %f` is removed))
|
||||||
@ -26,7 +26,7 @@
|
|||||||
#
|
#
|
||||||
# default (matches any file no matter what desc is)
|
# default (matches any file no matter what desc is)
|
||||||
#
|
#
|
||||||
# Other lines should start with a space or tab and should be of the format:
|
# 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:
|
# keyword=commandNL (with no spaces around =), where keyword should be:
|
||||||
#
|
#
|
||||||
@ -34,7 +34,7 @@
|
|||||||
#
|
#
|
||||||
# View (F3), Edit (F4), Drop (user drops some files on it) or any other
|
# View (F3), Edit (F4), Drop (user drops some files on it) or any other
|
||||||
#
|
#
|
||||||
# user defined name (those will be listed in the extension dependent pop-up
|
# user defined name (those will be listed in the extension dependent popup
|
||||||
# menu). This is not implemented yet for the text edition but will be
|
# menu). This is not implemented yet for the text edition but will be
|
||||||
# implemented some day so feel free to add useful actions here.
|
# implemented some day so feel free to add useful actions here.
|
||||||
#
|
#
|
||||||
@ -66,37 +66,34 @@
|
|||||||
# But you shouldn't have to use it in this file.)
|
# But you shouldn't have to use it in this file.)
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# %cd -> the rest is not command, but a path which will mc cd internally
|
# %cd -> the rest is a path mc should change into (cd won't work, since it's
|
||||||
# into (cd wouldn't work, since it is a child process, and %cd handles
|
# a child process). %cd handles even vfs names.
|
||||||
# even the vfs names
|
|
||||||
#
|
#
|
||||||
# %view -> the command you type will be piped into mc's internal file viewer
|
# %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
|
# 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)
|
# 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
|
# %view may be directly followed by {} with a list of any of
|
||||||
# ascii (Ascii mode), hex (Hex mode), nroff (c\bc color highlighting)
|
# ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
|
||||||
# and unformatted (not highlighting nroff sequences) separated by
|
# text using backspace for bold and underscore) and unform
|
||||||
# spaces.
|
# (no highlighting for nroff sequences) separated by commas.
|
||||||
#
|
#
|
||||||
# %var -> You use it like this: %var{ENV-VAR:default}. This macro will expand
|
# %var -> You use it like this: %var{VAR:default}. This macro will expand
|
||||||
# to the value of the ENV-VAR variable in the environement if it is set
|
# 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
|
# otherwise the value in default will be used. This is similar to
|
||||||
# the Bourne shell ${VAR-def} construct. We use it so that the extension
|
# the Bourne shell ${VAR-default} construct.
|
||||||
# file could be used unchanged under some shells that may use different
|
|
||||||
# methods of doing this
|
|
||||||
#
|
#
|
||||||
# %q -> will be replaced with a list of files user dropped on it
|
# %q -> will be replaced with a list of files user dropped on it
|
||||||
# with full pathnames (only applicable in the Drop command).
|
# with full pathnames (only applicable in the Drop command).
|
||||||
#
|
#
|
||||||
# Target are evaluted from top to bottom (order is thus important).
|
# 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
|
# 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
|
# 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
|
# 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.
|
# the second entry will be used. default should catch all the actions.
|
||||||
#
|
#
|
||||||
# Any handy entries you develop for you are always welcome, if it has
|
# Any new entries you develop for you are always welcome if they are
|
||||||
# wider usage than on one system. You can send your modifications to
|
# useful on more than one system. You can send your modifications
|
||||||
# via email to mc-devel@gnome.org
|
# by e-mail to mc-devel@gnome.org
|
||||||
|
|
||||||
|
|
||||||
### Changes ###
|
### Changes ###
|
||||||
@ -119,61 +116,17 @@
|
|||||||
# Maybe: Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
|
# Maybe: Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
|
||||||
|
|
||||||
|
|
||||||
### Programs ###
|
|
||||||
|
|
||||||
shell/rm
|
|
||||||
Open=if test ! -d ~/.trash; then mkdir ~/.trash; fi; I=%{Enter file to be safely deleted}; if test -n "$I"; then mv -f -b -V numbered %q ~/.trash; fi
|
|
||||||
Drop=if test ! -d ~/.trash; then mkdir ~/.trash; fi; mv -f -b -V numbered %q ~/.trash
|
|
||||||
Flush=rm -rf ~/.trash
|
|
||||||
Title=Safe delete
|
|
||||||
|
|
||||||
shell/lpr
|
|
||||||
Open=lpr %{Enter file(s) to print}
|
|
||||||
Drop=lpr %q
|
|
||||||
Print=lpr %{Enter file(s) to print}
|
|
||||||
|
|
||||||
shell/gzip
|
|
||||||
Open=gzip %{Enter file to gzip}
|
|
||||||
Drop=gzip %q
|
|
||||||
|
|
||||||
shell/bzip
|
|
||||||
Open=bzip %{Enter file to bzip}
|
|
||||||
Drop=bzip %q
|
|
||||||
|
|
||||||
shell/bzip2
|
|
||||||
Open=bzip2 %{Enter file to bzip}
|
|
||||||
Drop=bzip2 %q
|
|
||||||
|
|
||||||
shell/gunzip
|
|
||||||
Open=gunzip %{Enter file to gunzip}
|
|
||||||
Drop=gunzip %q
|
|
||||||
|
|
||||||
shell/bunzip
|
|
||||||
Open=bunzip %{Enter file to bunzip}
|
|
||||||
Drop=bunzip %q
|
|
||||||
|
|
||||||
shell/bunzip2
|
|
||||||
Open=bunzip2 %{Enter file to bunzip}
|
|
||||||
Drop=bunzip2 %q
|
|
||||||
|
|
||||||
shell/gdb
|
|
||||||
Open=gdb
|
|
||||||
Drop=gdb %q
|
|
||||||
|
|
||||||
|
|
||||||
### Sources ###
|
### Sources ###
|
||||||
|
|
||||||
# C
|
# C
|
||||||
shell/.c
|
shell/.c
|
||||||
Open=%var{EDITOR:vi} %f
|
Open=%var{EDITOR:vi} %f
|
||||||
View=%view{ascii}
|
|
||||||
Compile=%var{CC:cc} -O -c %f
|
Compile=%var{CC:cc} -O -c %f
|
||||||
Link=%var{CC:cc} -O -o %d/`basename %f .c` %f
|
Link=%var{CC:cc} -O -o %d/`basename %f .c` %f
|
||||||
|
|
||||||
# Fortran
|
# Fortran
|
||||||
shell/.f
|
shell/.f
|
||||||
Open=%var{EDITOR:vi} %f
|
Open=%var{EDITOR:vi} %f
|
||||||
View=%view{ascii}
|
|
||||||
Compile=f77 -O -c %f
|
Compile=f77 -O -c %f
|
||||||
Compile and Link=f77 -O %f
|
Compile and Link=f77 -O %f
|
||||||
|
|
||||||
@ -197,7 +150,6 @@ shell/.s
|
|||||||
# C++
|
# C++
|
||||||
regex/\.(C|cc)$
|
regex/\.(C|cc)$
|
||||||
Open=%var{EDITOR:vi} %f
|
Open=%var{EDITOR:vi} %f
|
||||||
View=%view{ascii}
|
|
||||||
Compile=c++ -O -c %f
|
Compile=c++ -O -c %f
|
||||||
Link=c++ -O -o %d/`basename %f .c` %f
|
Link=c++ -O -o %d/`basename %f .c` %f
|
||||||
|
|
||||||
@ -214,11 +166,20 @@ shell/.info
|
|||||||
Open=info --directory %d -f %p
|
Open=info --directory %d -f %p
|
||||||
|
|
||||||
# Manual page
|
# Manual page
|
||||||
|
# Exception - .so libraries are not manual pages
|
||||||
|
regex/\.(so|so\.[0-9\.]*)$
|
||||||
|
View=%view{ascii} nm %f
|
||||||
|
|
||||||
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|n)|\.man)$
|
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|n)|\.man)$
|
||||||
Open=nroff @TROFFASCII@ @MANDOC@ %f | %var{PAGER:more}
|
Open=nroff @TROFFASCII@ @MANDOC@ %f | %var{PAGER:more}
|
||||||
View=%view{ascii,nroff} nroff @TROFFASCII@ @MANDOC@ %f
|
View=%view{ascii,nroff} nroff @TROFFASCII@ @MANDOC@ %f
|
||||||
|
|
||||||
# Troff with me macros.
|
# Troff with me macros.
|
||||||
|
# Exception - "read.me" is not a nroff file.
|
||||||
|
shell/read.me
|
||||||
|
Open=
|
||||||
|
View=
|
||||||
|
|
||||||
shell/.me
|
shell/.me
|
||||||
Open=nroff @TROFFASCII@ -me %f | %var{PAGER:more}
|
Open=nroff @TROFFASCII@ -me %f | %var{PAGER:more}
|
||||||
View=%view{ascii,nroff} nroff @TROFFASCII@ -me %f
|
View=%view{ascii,nroff} nroff @TROFFASCII@ -me %f
|
||||||
@ -241,8 +202,6 @@ regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz2$
|
|||||||
Open=bzip2 -dc %f | nroff @TROFFASCII@ @MANDOC@ | %var{PAGER:more}
|
Open=bzip2 -dc %f | nroff @TROFFASCII@ @MANDOC@ | %var{PAGER:more}
|
||||||
View=%view{ascii,nroff} bzip2 -dc %f | nroff @TROFFASCII@ @MANDOC@
|
View=%view{ascii,nroff} bzip2 -dc %f | nroff @TROFFASCII@ @MANDOC@
|
||||||
|
|
||||||
regex/(read\.?me$|README)
|
|
||||||
|
|
||||||
|
|
||||||
### Images ###
|
### Images ###
|
||||||
|
|
||||||
@ -343,6 +302,14 @@ regex/\.([Hh]tml?|HTML?)$
|
|||||||
Run with AppletViewer=appletviewer %f
|
Run with AppletViewer=appletviewer %f
|
||||||
View with @X11_WWW@=@X11_WWW@ file://%f
|
View with @X11_WWW@=@X11_WWW@ file://%f
|
||||||
|
|
||||||
|
# StarOffice and OpenOffice
|
||||||
|
shell/.sdw
|
||||||
|
Open=soffice %f
|
||||||
|
|
||||||
|
# AbiWord
|
||||||
|
shell/.abw
|
||||||
|
Open=abiword %f
|
||||||
|
|
||||||
# Microsoft Word Document
|
# Microsoft Word Document
|
||||||
regex/\.([Dd]o[ct]|DO[CT]|[Ww]ri|WRI)$
|
regex/\.([Dd]o[ct]|DO[CT]|[Ww]ri|WRI)$
|
||||||
View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
|
View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
|
||||||
@ -396,7 +363,6 @@ shell/Imakefile
|
|||||||
# Executables
|
# Executables
|
||||||
type/\ executable
|
type/\ executable
|
||||||
Open=./%f
|
Open=./%f
|
||||||
View=%view
|
|
||||||
Drop=%f %q
|
Drop=%f %q
|
||||||
Execute in XTerm=xterm -e %f &
|
Execute in XTerm=xterm -e %f &
|
||||||
View Required Libraries=%view{ascii} ldd %f
|
View Required Libraries=%view{ascii} ldd %f
|
||||||
@ -529,14 +495,9 @@ regex/\.s?a$
|
|||||||
#Open=%view{ascii} ar tv %f
|
#Open=%view{ascii} ar tv %f
|
||||||
View=%view{ascii} nm %f
|
View=%view{ascii} nm %f
|
||||||
|
|
||||||
# .so libraries are not manual pages
|
|
||||||
regex/\.(so|so\.[0-9\.]*)$
|
|
||||||
View=%view{hex}
|
|
||||||
|
|
||||||
# ls-lR
|
# ls-lR
|
||||||
regex/(^|\.)ls-?lR$
|
regex/(^|\.)ls-?lR$
|
||||||
Open=%cd %p#lslR
|
Open=%cd %p#lslR
|
||||||
View=%view{ascii}
|
|
||||||
regex/(^|\.)ls-?lR\.(g?z|Z)$
|
regex/(^|\.)ls-?lR\.(g?z|Z)$
|
||||||
Open=%cd %p#lslR
|
Open=%cd %p#lslR
|
||||||
View=%view{ascii} gunzip -c %f
|
View=%view{ascii} gunzip -c %f
|
||||||
@ -588,7 +549,7 @@ directory/^.*$
|
|||||||
# Default target for anything not described above
|
# Default target for anything not described above
|
||||||
default/*
|
default/*
|
||||||
Open=
|
Open=
|
||||||
View=%view{ascii}
|
View=
|
||||||
Drop=
|
Drop=
|
||||||
Title=%p
|
Title=%p
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user