1998-02-27 07:54:42 +03:00
|
|
|
# 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)
|
|
|
|
#
|
2001-07-20 01:55:24 +04:00
|
|
|
# regex (desc is an extended regular expression)
|
1998-02-27 07:54:42 +03:00
|
|
|
# Please note that we are using the GNU regex library and thus
|
|
|
|
# \| matches the literal | and | has special meaning (or) and
|
2001-07-20 01:55:24 +04:00
|
|
|
# () have special meaning and \( \) stand for literal ( ).
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
#
|
2001-07-20 01:55:24 +04:00
|
|
|
# Other lines should start with a space or tab and should be in the format:
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
|
|
|
# keyword=commandNL (with no spaces around =), where keyword should be:
|
|
|
|
#
|
|
|
|
# Open (if the user presses Enter or doubleclicks it),
|
|
|
|
#
|
2002-08-10 04:18:07 +04:00
|
|
|
# View (F3), Edit (F4)
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
|
|
|
# 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
|
1998-05-26 04:53:24 +04:00
|
|
|
# virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
|
1998-02-27 07:54:42 +03:00
|
|
|
# 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.)
|
|
|
|
#
|
|
|
|
#
|
2001-07-20 01:55:24 +04:00
|
|
|
# %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.
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
|
|
|
# %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
|
2001-07-20 01:55:24 +04:00
|
|
|
# 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.
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
2001-07-20 01:55:24 +04:00
|
|
|
# %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
|
1998-02-27 07:54:42 +03:00
|
|
|
# otherwise the value in default will be used. This is similar to
|
2001-07-20 01:55:24 +04:00
|
|
|
# the Bourne shell ${VAR-default} construct.
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
2001-07-20 01:55:24 +04:00
|
|
|
# Rules are applied from top to bottom, thus the order is important.
|
1998-02-27 07:54:42 +03:00
|
|
|
# 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.
|
|
|
|
#
|
2001-07-20 01:55:24 +04:00
|
|
|
# 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
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
### Changes ###
|
2000-05-05 18:27:14 +04:00
|
|
|
#
|
2000-05-03 13:56:51 +04:00
|
|
|
# Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
|
2000-04-26 13:54:04 +04:00
|
|
|
|
|
|
|
|
2000-05-05 18:27:14 +04:00
|
|
|
### 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.
|
2000-04-26 13:54:04 +04:00
|
|
|
|
|
|
|
|
|
|
|
### Sources ###
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
# C
|
|
|
|
shell/.c
|
2000-04-26 13:54:04 +04:00
|
|
|
Open=%var{EDITOR:vi} %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# Fortran
|
1998-02-27 07:54:42 +03:00
|
|
|
shell/.f
|
2000-04-26 13:54:04 +04:00
|
|
|
Open=%var{EDITOR:vi} %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# Header
|
1998-02-27 07:54:42 +03:00
|
|
|
shell/.h
|
|
|
|
Open=%var{EDITOR:vi} %f
|
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# Object
|
1998-02-27 07:54:42 +03:00
|
|
|
shell/.o
|
2000-04-26 13:54:04 +04:00
|
|
|
#Open=%var{PAGER:more} %f
|
2002-02-27 02:59:55 +03:00
|
|
|
View=%view{ascii} file %f && nm %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# Asm
|
1998-02-27 07:54:42 +03:00
|
|
|
shell/.s
|
2000-04-26 13:54:04 +04:00
|
|
|
Open=%var{EDITOR:vi} %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
# C++
|
|
|
|
regex/\.(C|cc)$
|
2000-04-26 13:54:04 +04:00
|
|
|
Open=%var{EDITOR:vi} %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
### Documentation ###
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# Texinfo
|
2001-07-14 04:01:20 +04:00
|
|
|
regex/\.(te?xi|texinfo)$
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1999-01-26 00:29:13 +03:00
|
|
|
# GNU Info page
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^Info\ text
|
2001-07-20 02:15:35 +04:00
|
|
|
Open=info -f %f
|
2001-07-14 04:01:20 +04:00
|
|
|
|
|
|
|
shell/.info
|
2001-07-20 02:15:35 +04:00
|
|
|
Open=info -f %f
|
1999-01-26 00:29:13 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
# Manual page
|
2001-07-20 01:55:24 +04:00
|
|
|
# Exception - .so libraries are not manual pages
|
|
|
|
regex/\.(so|so\.[0-9\.]*)$
|
2002-02-27 02:59:55 +03:00
|
|
|
View=%view{ascii} file %f && nm %f
|
2001-07-20 01:55:24 +04:00
|
|
|
|
1998-03-23 21:09:46 +03:00
|
|
|
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|n)|\.man)$
|
1998-02-27 07:54:42 +03:00
|
|
|
Open=nroff @TROFFASCII@ @MANDOC@ %f | %var{PAGER:more}
|
|
|
|
View=%view{ascii,nroff} nroff @TROFFASCII@ @MANDOC@ %f
|
|
|
|
|
|
|
|
# Troff with me macros.
|
2001-07-20 01:55:24 +04:00
|
|
|
# Exception - "read.me" is not a nroff file.
|
|
|
|
shell/read.me
|
|
|
|
Open=
|
|
|
|
View=
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
shell/.me
|
|
|
|
Open=nroff @TROFFASCII@ -me %f | %var{PAGER:more}
|
|
|
|
View=%view{ascii,nroff} nroff @TROFFASCII@ -me %f
|
|
|
|
|
|
|
|
# Troff with ms macros.
|
|
|
|
shell/.ms
|
|
|
|
Open=nroff @TROFFASCII@ -ms %f | %var{PAGER:more}
|
|
|
|
View=%view{ascii,nroff} nroff @TROFFASCII@ -ms %f
|
|
|
|
|
|
|
|
# Manual page - compressed
|
|
|
|
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.g?[Zz]$
|
1999-09-20 03:09:07 +04:00
|
|
|
Open=gzip -dc %f | nroff @TROFFASCII@ @MANDOC@ | %var{PAGER:more}
|
|
|
|
View=%view{ascii,nroff} gzip -dc %f | nroff @TROFFASCII@ @MANDOC@
|
|
|
|
|
|
|
|
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz$
|
|
|
|
Open=bzip -dc %f | nroff @TROFFASCII@ @MANDOC@ | %var{PAGER:more}
|
|
|
|
View=%view{ascii,nroff} bzip -dc %f | nroff @TROFFASCII@ @MANDOC@
|
|
|
|
|
|
|
|
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz2$
|
|
|
|
Open=bzip2 -dc %f | nroff @TROFFASCII@ @MANDOC@ | %var{PAGER:more}
|
|
|
|
View=%view{ascii,nroff} bzip2 -dc %f | nroff @TROFFASCII@ @MANDOC@
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
### Images ###
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^GIF
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
2001-07-14 04:01:20 +04:00
|
|
|
|
|
|
|
type/^JPEG
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
1998-04-18 01:40:30 +04:00
|
|
|
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^PC\ bitmap
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
1998-04-22 10:01:38 +04:00
|
|
|
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^PNG
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
1998-04-22 10:01:38 +04:00
|
|
|
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^TIFF
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
2001-07-14 04:01:20 +04:00
|
|
|
|
|
|
|
type/^PBM
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
2001-07-14 04:01:20 +04:00
|
|
|
|
|
|
|
type/^PGM
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
2001-07-14 04:01:20 +04:00
|
|
|
|
|
|
|
type/^PPM
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-10-30 11:08:04 +03:00
|
|
|
type/^Netpbm
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
2001-10-30 11:08:04 +03:00
|
|
|
|
2001-10-12 10:32:58 +04:00
|
|
|
shell/.xcf
|
|
|
|
Open=gimp %f
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
shell/.xbm
|
|
|
|
Open=bitmap %f
|
|
|
|
|
|
|
|
shell/.xpm
|
2002-08-27 10:33:47 +04:00
|
|
|
Include=image
|
2000-04-26 13:54:04 +04:00
|
|
|
View=sxpm %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2002-08-27 10:33:47 +04:00
|
|
|
include/image
|
2000-04-26 13:54:04 +04:00
|
|
|
Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (ee %f &); fi
|
2000-05-03 13:56:51 +04:00
|
|
|
View=%view{ascii} identify %f
|
2000-04-26 13:54:04 +04:00
|
|
|
#View=%view{ascii} asciiview %f
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
|
|
|
|
### Sound files ###
|
|
|
|
|
|
|
|
regex/\.(wav|WAV|Wav|snd|SND|Snd|voc|VOC|Voc|au|AU|Au)$
|
1998-02-27 07:54:42 +03:00
|
|
|
Open=play %f
|
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
regex/\.(mod|MOD|Mod|s3m|S3M|S3m|xm|XM|Xm)$
|
|
|
|
Open=mikmod %f
|
|
|
|
#Open=tracker %f
|
|
|
|
|
|
|
|
regex/\.(wav22|WAV22)$
|
|
|
|
Open=vplay -s 22 %f
|
|
|
|
|
|
|
|
regex/\.(mp3|MP3|Mp3)$
|
2001-10-05 09:51:26 +04:00
|
|
|
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'
|
2000-04-26 13:54:04 +04:00
|
|
|
|
2001-10-05 09:51:26 +04:00
|
|
|
regex/\.(ogg|OGG|Ogg)$
|
|
|
|
Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
|
2001-10-06 02:41:33 +04:00
|
|
|
View=%view{ascii} ogginfo %s
|
2001-10-05 09:51:26 +04:00
|
|
|
|
2002-04-21 08:09:02 +04:00
|
|
|
regex/\.(midi?|MIDI?|Midi?|rmid?|RMID?|Rmid?)$
|
2001-10-05 09:51:26 +04:00
|
|
|
Open=timidity %f
|
2000-04-26 13:54:04 +04:00
|
|
|
|
|
|
|
|
2002-08-27 10:33:47 +04:00
|
|
|
### Video ###
|
2000-04-26 13:54:04 +04:00
|
|
|
|
2002-08-27 10:33:47 +04:00
|
|
|
regex/\.(avi|AVI|Avi)$
|
|
|
|
Include=video
|
2002-07-29 01:04:36 +04:00
|
|
|
|
2002-08-27 10:33:47 +04:00
|
|
|
regex/\.(asf|ASF|Asf)$
|
|
|
|
Include=video
|
|
|
|
|
|
|
|
regex/\.(divx|DIVX|DivX|Divx)$
|
|
|
|
Include=video
|
|
|
|
|
|
|
|
regex/\.(mp4|MP4|Mp4|mpe?g|MPE?G|Mpe?g)$
|
|
|
|
Include=video
|
|
|
|
|
|
|
|
regex/\.(vob|VOB|Vob)$
|
|
|
|
Include=video
|
|
|
|
|
|
|
|
regex/\.(wmv|WMV|Wmv)$
|
|
|
|
Include=video
|
2000-04-26 13:54:04 +04:00
|
|
|
|
|
|
|
regex/\.(rm|RM|Rm|ram|RAM|Ram)$
|
2002-07-29 01:04:36 +04:00
|
|
|
Open=(realplay %f >/dev/null 2>&1 &)
|
2000-04-26 13:54:04 +04:00
|
|
|
|
2002-08-27 10:33:47 +04:00
|
|
|
include/video
|
|
|
|
Open=(mplayer %f >/dev/null 2>&1 &)
|
|
|
|
#Open=(gtv %f >/dev/null 2>&1 &)
|
|
|
|
#Open=(xanim %f >/dev/null 2>&1 &)
|
2000-04-26 13:54:04 +04:00
|
|
|
|
|
|
|
### Documents ###
|
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# Postscript
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^PostScript
|
2001-11-28 03:25:44 +03:00
|
|
|
Open=(gv %f &)
|
2000-04-26 13:54:04 +04:00
|
|
|
View=%view{ascii} ps2ascii %f
|
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# PDF
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^PDF
|
2001-11-28 03:25:44 +03:00
|
|
|
Open=(xpdf %f &)
|
|
|
|
#Open=(acroread %f &)
|
|
|
|
#Open=(ghostview %f &)
|
2000-04-26 13:54:04 +04:00
|
|
|
View=%view{ascii} pdftotext %f -
|
|
|
|
|
2002-08-19 06:27:19 +04:00
|
|
|
# The following code very ugly and should not be taken as example.
|
|
|
|
# It should be cleaned up when the new format of mc.ext is developed.
|
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# html
|
2000-04-26 13:54:04 +04:00
|
|
|
regex/\.([Hh]tml?|HTML?)$
|
2002-08-19 06:27:19 +04:00
|
|
|
Open=if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) >/dev/null 2>&1; else links %f || lynx -force_html %f; fi
|
|
|
|
View=%view{ascii} links -dump %f || lynx -dump -force_html %f
|
2000-04-26 13:54:04 +04:00
|
|
|
|
2002-08-27 10:33:47 +04:00
|
|
|
# StarOffice 5.2
|
2001-07-20 01:55:24 +04:00
|
|
|
shell/.sdw
|
2002-08-27 10:33:47 +04:00
|
|
|
Open=(ooffice %f &)
|
|
|
|
|
|
|
|
# StarOffice 6 and OpenOffice.org formats
|
|
|
|
shell/.(sxw|stw|sxc|stc|sxi|sti|sxd|std|sxm|sxg)
|
|
|
|
Open=(ooffice %f &)
|
2001-07-20 01:55:24 +04:00
|
|
|
|
|
|
|
# AbiWord
|
|
|
|
shell/.abw
|
2001-11-28 03:25:44 +03:00
|
|
|
Open=(abiword %f &)
|
2001-07-20 01:55:24 +04:00
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# Microsoft Word Document
|
2001-05-30 00:40:59 +04:00
|
|
|
regex/\.([Dd]o[ct]|DO[CT]|[Ww]ri|WRI)$
|
2002-07-29 01:04:36 +04:00
|
|
|
Open=(abiword %f >/dev/null 2>&1 &)
|
2001-05-30 00:40:59 +04:00
|
|
|
View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^Microsoft\ Word
|
2002-07-29 01:04:36 +04:00
|
|
|
Open=(abiword %f >/dev/null 2>&1 &)
|
2001-05-30 00:40:59 +04:00
|
|
|
View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
|
|
|
|
|
2002-07-29 01:04:36 +04:00
|
|
|
# RTF document
|
|
|
|
regex/\.(rtf|RTF|Rtf)$
|
|
|
|
Open=(abiword %f >/dev/null 2>&1 &)
|
|
|
|
|
2001-05-30 00:40:59 +04:00
|
|
|
# Microsoft Excel Worksheet
|
|
|
|
regex/\.([Xx]l[sw]|XL[SW])$
|
2002-07-29 01:04:36 +04:00
|
|
|
Open=(gnumeric %f >/dev/null 2>&1 &)
|
2001-05-30 00:40:59 +04:00
|
|
|
View=%view{ascii} xls2csv %f || strings %f
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^Microsoft\ Excel
|
2002-07-29 01:04:36 +04:00
|
|
|
Open=(gnumeric %f >/dev/null 2>&1 &)
|
2001-05-30 00:40:59 +04:00
|
|
|
View=%view{ascii} xls2csv %f || strings %f
|
|
|
|
|
2002-08-27 10:33:47 +04:00
|
|
|
# Use OpenOffice.org to open any MS Office documents
|
2001-11-28 03:25:44 +03:00
|
|
|
type/^Microsoft\ Office\ Document
|
2002-08-27 10:33:47 +04:00
|
|
|
Open=(ooffice %f &)
|
2001-11-28 03:25:44 +03:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# Framemaker
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^FrameMaker
|
1998-02-27 07:54:42 +03:00
|
|
|
Open=fmclient -f %f
|
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# DVI
|
|
|
|
regex/\.([Dd]vi|DVI)$
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
|
|
|
|
View=%view{ascii} dvi2tty %f
|
2000-04-26 13:54:04 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# TeX
|
|
|
|
regex/\.([Tt]ex|TEX|TeX)$
|
2000-04-26 13:54:04 +04:00
|
|
|
Open=%var{EDITOR:vi} %f
|
|
|
|
|
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
### Miscellaneous ###
|
2000-04-26 13:54:04 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
# Makefile
|
2001-10-16 11:30:33 +04:00
|
|
|
regex/[Mm]akefile$
|
1998-02-27 07:54:42 +03:00
|
|
|
Open=make -f %f %{Enter parameters}
|
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
# Imakefile
|
1998-02-27 07:54:42 +03:00
|
|
|
shell/Imakefile
|
|
|
|
Open=xmkmf -a
|
|
|
|
|
2001-10-16 11:30:33 +04:00
|
|
|
# Makefile.PL (MakeMaker)
|
|
|
|
regex/^Makefile.(PL|pl)$
|
|
|
|
Open=%var{PERL:perl} %f
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
# dbf
|
|
|
|
regex/\.(dbf|DBF)$
|
|
|
|
Open=%view{ascii} dbview %f
|
|
|
|
View=%view{ascii} dbview -b %f
|
|
|
|
|
|
|
|
# REXX script
|
2001-07-14 04:01:20 +04:00
|
|
|
regex/\.(rexx|rex|cmd)$
|
1998-02-27 07:54:42 +03:00
|
|
|
Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
|
|
|
|
|
1999-09-20 03:09:07 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
### Archives ###
|
|
|
|
|
|
|
|
# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
|
|
|
|
regex/\.t([gp]?z|ar\.g?[zZ])$
|
|
|
|
Open=%cd %p#utar
|
|
|
|
View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
|
2002-08-10 03:19:53 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
regex/\.tar\.bz$
|
|
|
|
# Open=%cd %p#utar
|
|
|
|
View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
|
2002-08-10 03:19:53 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
regex/\.tar\.bz2$
|
|
|
|
Open=%cd %p#utar
|
|
|
|
View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
|
|
|
|
|
2001-03-02 19:32:23 +03:00
|
|
|
# .tar.F - used in QNX
|
|
|
|
regex/\.tar\.F$
|
|
|
|
# Open=%cd %p#utar
|
|
|
|
View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
|
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# tar
|
|
|
|
regex/\.(tar|TAR)$
|
|
|
|
Open=%cd %p#utar
|
|
|
|
View=%view{ascii} tar tvvf %f
|
|
|
|
|
|
|
|
# zip
|
2001-11-30 00:27:55 +03:00
|
|
|
type/^Zip\ archive
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=%cd %p#uzip
|
|
|
|
View=%view{ascii} unzip -v %f
|
|
|
|
|
|
|
|
# zoo
|
|
|
|
regex/\.(zoo|ZOO)$
|
|
|
|
Open=%cd %p#uzoo
|
|
|
|
View=%view{ascii} zoo l %f
|
|
|
|
|
|
|
|
# lha
|
2001-11-30 00:27:55 +03:00
|
|
|
type/^LHa\ .*archive
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=%cd %p#ulha
|
|
|
|
View=%view{ascii} lharc l %f
|
|
|
|
|
|
|
|
# arj
|
|
|
|
regex/\.a(rj|[0-9][0-9])$
|
|
|
|
Open=%cd %p#uarj
|
|
|
|
View=%view{ascii} unarj l %f
|
|
|
|
|
|
|
|
# ha
|
|
|
|
regex/\.(ha|HA|Ha)$
|
|
|
|
Open=%cd %p#uha
|
|
|
|
View=%view{ascii} ha lf %f
|
|
|
|
|
|
|
|
# rar
|
|
|
|
regex/\.[rR]([aA][rR]|[0-9][0-9])$
|
|
|
|
Open=%cd %p#urar
|
|
|
|
View=%view{ascii} rar v -c- %f
|
|
|
|
|
|
|
|
# cpio
|
|
|
|
shell/.cpio.Z
|
2001-07-20 02:15:35 +04:00
|
|
|
Open=%cd %p#ucpio
|
2002-08-27 09:59:06 +04:00
|
|
|
View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
|
2002-08-10 03:19:53 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
shell/.cpio.gz
|
2001-07-20 02:15:35 +04:00
|
|
|
Open=%cd %p#ucpio
|
2002-08-27 09:59:06 +04:00
|
|
|
View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
|
2002-08-10 03:19:53 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
shell/.cpio
|
2001-07-20 02:15:35 +04:00
|
|
|
Open=%cd %p#ucpio
|
2002-08-27 09:59:06 +04:00
|
|
|
View=%view{ascii} cpio -itv <'%f' 2>/dev/null
|
2000-05-03 13:56:51 +04:00
|
|
|
|
2001-08-14 07:27:12 +04:00
|
|
|
# ls-lR
|
|
|
|
regex/(^|\.)ls-?lR$
|
|
|
|
Open=%cd %p#lslR
|
|
|
|
regex/(^|\.)ls-?lR\.(g?z|Z)$
|
|
|
|
Open=%cd %p#lslR
|
2002-08-27 09:59:06 +04:00
|
|
|
View=%view{ascii} gzip -dc %f
|
2001-08-14 07:27:12 +04:00
|
|
|
|
|
|
|
# ftplist
|
|
|
|
regex/\.ftplist$
|
|
|
|
Open=%cd %p#ftplist
|
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# gzip
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^gzip
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=gzip -dc %f | %var{PAGER:more}
|
|
|
|
View=%view{ascii} gzip -dc %f 2>/dev/null
|
|
|
|
|
|
|
|
# bzip2
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^bzip2
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=bzip2 -dc %f | %var{PAGER:more}
|
|
|
|
View=%view{ascii} bzip2 -dc %f 2>/dev/null
|
|
|
|
|
|
|
|
# bzip
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^bzip
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=bzip -dc %f | %var{PAGER:more}
|
|
|
|
View=%view{ascii} bzip -dc %f 2>/dev/null
|
|
|
|
|
|
|
|
# compress
|
2001-07-14 04:01:20 +04:00
|
|
|
type/^compress
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=gzip -dc %f | %var{PAGER:more}
|
|
|
|
View=%view{ascii} gzip -dc %f 2>/dev/null
|
|
|
|
|
|
|
|
# ar library
|
|
|
|
regex/\.s?a$
|
|
|
|
Open=%cd %p#uar
|
|
|
|
#Open=%view{ascii} ar tv %f
|
2002-02-27 02:59:55 +03:00
|
|
|
View=%view{ascii} file %f && nm %f
|
2000-05-03 13:56:51 +04:00
|
|
|
|
|
|
|
# trpm
|
|
|
|
regex/\.trpm$
|
|
|
|
Open=%cd %p#trpm
|
|
|
|
View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
|
|
|
|
|
2000-10-09 19:00:29 +04:00
|
|
|
# Source RPMs (SuSE uses *.spm, others use *.src.rpm)
|
|
|
|
regex/\.(spm|src\.rpm)$
|
2000-05-03 13:56:51 +04:00
|
|
|
Open=%cd %p#rpm
|
2001-05-23 22:57:25 +04:00
|
|
|
View=%view{ascii} rpm -qivlp --scripts %f
|
2000-05-03 13:56:51 +04:00
|
|
|
|
2000-10-09 19:00:29 +04:00
|
|
|
# Compiled RPMs
|
|
|
|
regex/\.rpm$
|
2000-10-05 17:03:00 +04:00
|
|
|
Open=%cd %p#rpm
|
2001-05-23 22:57:25 +04:00
|
|
|
View=%view{ascii} rpm -qivlp --scripts %f
|
2000-10-05 17:03:00 +04:00
|
|
|
|
2000-05-03 13:56:51 +04:00
|
|
|
# deb
|
|
|
|
regex/\.deb$
|
|
|
|
Open=%cd %p#deb
|
|
|
|
View=%view{ascii} dpkg-deb -c %f
|
|
|
|
|
|
|
|
|
2000-04-26 13:54:04 +04:00
|
|
|
### Default ###
|
1999-09-20 03:09:07 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
# Default target for anything not described above
|
|
|
|
default/*
|
|
|
|
Open=
|
2001-07-20 01:55:24 +04:00
|
|
|
View=
|
2000-04-26 13:54:04 +04:00
|
|
|
|
|
|
|
|
|
|
|
### EOF ###
|