linux/.mc/bindings
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 02 Sep 2009 22:22:53 +0300
changeset 3 a1e69064ee0b
permissions -rw-r--r--
Added some linux conf files.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
# Midnight Commander 3.0 extension file
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
# Warning: Structure of this file has changed completely with version 3.0
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
# All lines starting with # or empty lines are thrown away.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
# Lines starting in the first column should have following format:
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
# keyword/descNL, i.e. everything after keyword/ until new line is desc
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
# keyword can be: 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
#    shell (desc is, when starting with a dot, any extension (no wildcars), 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
#          i.e. matches all the files *desc . Example: .tar matches *.tar;
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
#          if it doesn't start with a dot, it matches only a file of that name)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
#    regex (desc is an extended regular expression)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
#          Please note that we are using the GNU regex library and thus
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
#          \| matches the literal | and | has special meaning (or) and
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
#          () have special meaning and \( \) stand for literal ( ).
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
#    type  (file matches this if `file %f` matches regular expression desc
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
#          (the filename: part from `file %f` is removed))
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
#    directory (matches any directory matching regular expression desc)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
#    include (matches an include directive)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
#    default (matches any file no matter what desc is)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
# Other lines should start with a space or tab and should be in the format:
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
# keyword=commandNL (with no spaces around =), where keyword should be: 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
#    Open (if the user presses Enter or doubleclicks it), 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
#    View (F3), Edit (F4)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
#    Include is the keyword used to add any further entries from an include/
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
#    section
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    39
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
# command is any one-line shell command, with the following substitutions:
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
# %% -> % character
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    43
# %p -> name of the current file (without path, but pwd is its path)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
# %f -> name of the current file. Unlike %p, if file is located on a 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    45
#	non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    46
#	then the file will be temporarily copied into a local directory
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    47
#	and %f will be the full path to this local temporal file.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
#	If you don't want to get a local copy and want to get the
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    49
#	virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
#	use %d/%p instead of %f.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
# %d -> name of the current directory (pwd, without trailing slash)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
# %s -> "selected files", i.e. space separated list of tagged files if any
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    53
#       or name of the current file
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    54
# %t -> list of tagged files
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    55
# %u -> list of tagged files (they'll be untaged after the command)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    56
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    57
# (If these 6 letters are in uppercase, they refer to the other panel.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    58
# But you shouldn't have to use it in this file.)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    59
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
# %cd -> the rest is a path mc should change into (cd won't work, since it's
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
#	a child process).  %cd handles even vfs names.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
# %view -> the command you type will be piped into mc's internal file viewer
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    65
#	if you type only the %view and no command, viewer will load %f file
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    66
#	instead (i.e. no piping, so it is different to %view cat %f)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    67
#	%view may be directly followed by {} with a list of any of
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    68
#	ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    69
#	text using backspace for bold and underscore) and unform
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    70
#	(no highlighting for nroff sequences) separated by commas.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    71
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
# %var -> You use it like this: %var{VAR:default}.  This macro will expand
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
#       to the value of the VAR variable in the environment if it's set
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
#       otherwise the value in default will be used.  This is similar to
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
#       the Bourne shell ${VAR-default} construct.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
# Rules are applied from top to bottom, thus the order is important.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    78
# If some actions are missing, search continues as if this target didn't
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    79
# match (i.e. if a file matches the first and second entry and View action
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    80
# is missing in the first one, then on pressing F3 the View action from
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    81
# the second entry will be used. default should catch all the actions.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    82
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    83
# Any new entries you develop for you are always welcome if they are
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    84
# useful on more than one system.  You can send your modifications
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    85
# by e-mail to mc-devel@gnome.org
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    86
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
### Changes ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    90
# Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    91
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    92
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    93
### TODO ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    94
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    95
# Postscript	Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    96
# Images		asciiview
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    97
# 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    98
# All X Apps	[Nothing/Warning] if no DISPLAY
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    99
# Not found	[Default/Warning]
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   100
# Empty Output	[Default/Warning]
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   101
# Edit:		CopyOut+EDIT+CopyIn
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   102
# Security	Check gzip/bzip EDIT (mktemp)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   103
# 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   104
# Maybe:	Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   105
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   106
regex/\.pdf\.gz$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   107
    Open=(zxpdf %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   108
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   109
### Archives ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   110
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   111
# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   112
regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   113
	Open=%cd %p#utar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   114
	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   115
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   116
regex/\.tar\.bz$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   117
	# Open=%cd %p#utar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   118
	View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   119
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   120
regex/\.t(ar\.bz2|bz|b2)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   121
	Open=%cd %p#utar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   122
	View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   123
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   124
# .tar.F - used in QNX
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   125
regex/\.tar\.F$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   126
	# Open=%cd %p#utar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   127
	View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   128
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   129
# .qpr/.qpk - QNX Neutrino package installer files 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   130
regex/\.(qp[rk])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   131
	Open=%cd %p#utar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   132
	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   133
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   134
# tar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   135
regex/\.(tar|TAR)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   136
	Open=%cd %p#utar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   137
	View=%view{ascii} tar tvvf - < %f 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   138
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   139
# lha
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   140
type/^LHa\ .*archive
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   141
	Open=%cd %p#ulha
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   142
	View=%view{ascii} lha l %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   143
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   144
# arj
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   145
regex/\.a(rj|[0-9][0-9])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   146
	Open=%cd %p#uarj
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   147
	View=%view{ascii} arj l %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   148
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   149
# ha
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   150
regex/\.([Hh][Aa])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   151
	Open=%cd %p#uha
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   152
	View=%view{ascii} ha lf %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   153
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   154
# rar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   155
regex/\.[rR]([aA][rR]|[0-9][0-9])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   156
	Open=%cd %p#urar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   157
	View=%view{ascii} rar v -c- %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   158
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   159
# cpio
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   160
shell/.cpio.Z
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   161
	Open=%cd %p#ucpio
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   162
	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   163
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   164
shell/.cpio.gz
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   165
	Open=%cd %p#ucpio
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   166
	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   167
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   168
shell/.cpio
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   169
	Open=%cd %p#ucpio
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   170
	View=%view{ascii} cpio -itv <'%f' 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   171
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   172
# ls-lR
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   173
regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   174
	Open=%cd %p#lslR
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   175
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   176
# patch
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   177
regex/\.(diff|patch)(\.(bz2|gz|Z))?$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   178
        Open=%cd %p#patchfs
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   179
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   180
# ar library
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   181
regex/\.s?a$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   182
	Open=%cd %p#uar
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   183
	#Open=%view{ascii} ar tv %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   184
	View=%view{ascii} file %f && nm %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   185
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   186
# trpm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   187
regex/\.trpm$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   188
	Open=%cd %p#trpm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   189
	View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   190
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   191
# RPM packages (SuSE uses *.spm for source packages)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   192
regex/\.(rpm|spm)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   193
	Open=%cd %p#rpm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   194
	View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   195
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   196
# deb
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   197
regex/\.u?deb$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   198
	Open=%cd %p#deb
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   199
	View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   200
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   201
# dpkg
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   202
shell/.debd
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   203
        Open=%cd %p#debd
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   204
        View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   205
# apt
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   206
shell/.deba
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   207
        Open=%cd %p#deba
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   208
        View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   209
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   210
# ISO9660
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   211
regex/\.iso$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   212
	Open=%cd %p#iso9660
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   213
	View=%view{ascii} isoinfo -l -i %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   214
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   215
# 7zip archives (they are not man pages)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   216
shell/.7z
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   217
	View=%view{ascii} 7za l %f 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   218
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   219
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   220
### Sources ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   221
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   222
# C
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   223
shell/.c
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   224
	Open=sensible-editor %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   225
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   226
# Fortran
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   227
shell/.f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   228
	Open=sensible-editor %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   229
	
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   230
# Header
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   231
regex/\.(h|hpp)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   232
	Open=sensible-editor %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   233
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   234
# Object
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   235
shell/.o
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   236
	#Open=sensible-pager %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   237
	View=%view{ascii} file %f && nm %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   238
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   239
# Asm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   240
shell/.s
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   241
	Open=sensible-editor %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   242
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   243
# C++
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   244
regex/\.(C|cc|cpp)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   245
	Open=sensible-editor %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   246
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   247
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   248
### Documentation ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   249
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   250
# Texinfo
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   251
regex/\.(te?xi|texinfo)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   252
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   253
# GNU Info page
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   254
type/^Info\ text
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   255
	Open=info -f %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   256
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   257
shell/.info
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   258
	Open=info -f %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   259
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   260
# Manual page
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   261
# Exception - .so libraries are not manual pages
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   262
regex/\.(so|so\.[0-9\.]*)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   263
	View=%view{ascii} file %f && nm %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   264
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   265
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   266
	Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   267
	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   268
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   269
# Troff with me macros.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   270
# Exception - "read.me" is not a nroff file.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   271
shell/read.me
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   272
	Open=
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   273
	View=
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   274
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   275
shell/.me
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   276
	Open=nroff  -me %f | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   277
	View=%view{ascii,nroff} nroff  -me %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   278
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   279
# Troff with ms macros.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   280
shell/.ms
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   281
	Open=nroff  -ms %f | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   282
	View=%view{ascii,nroff} nroff  -ms %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   283
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   284
# Manual page - compressed
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   285
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   286
	Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   287
	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   288
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   289
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   290
	Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   291
	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   292
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   293
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   294
	Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   295
	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   296
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   297
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   298
### Images ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   299
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   300
type/^GIF
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   301
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   302
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   303
type/^JPEG
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   304
	View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   305
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   306
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   307
type/^PC\ bitmap
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   308
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   309
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   310
type/^PNG
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   311
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   312
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   313
type/^TIFF
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   314
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   315
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   316
type/^PBM
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   317
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   318
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   319
type/^PGM
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   320
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   321
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   322
type/^PPM
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   323
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   324
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   325
type/^Netpbm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   326
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   327
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   328
shell/.xcf
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   329
	Open=gimp %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   330
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   331
shell/.xbm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   332
	Include=image 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   333
	#Open=bitmap %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   334
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   335
shell/.xpm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   336
	Include=image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   337
	View=sxpm %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   338
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   339
include/image
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   340
	Open=see %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   341
	#Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   342
	View=%view{ascii} identify %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   343
	#View=%view{ascii} asciiview %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   344
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   345
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   346
### Sound files ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   347
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   348
regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   349
	Open=run-mailcap audio/x-wav:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   350
	#Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   351
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   352
regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   353
	Open=run-mailcap application/x-mod:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   354
        #Open=mikmod %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   355
        #Open=tracker %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   356
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   357
regex/\.([wW][aA][wW]22)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   358
       Open=vplay -s 22 %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   359
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   360
regex/\.([mM][pP]3)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   361
	Open=run-mailcap audio/mpeg:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   362
	#Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   363
	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   364
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   365
regex/\.([oO][gG][gG])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   366
	Open=run-mailcap application/x-ogg:%f &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   367
	#Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   368
	View=%view{ascii} ogginfo %s
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   369
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   370
regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   371
	Open=run-mailcap audio/midi:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   372
	#Open=timidity %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   373
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   374
regex/\.([wW][mM][aA])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   375
	Open=mplayer -vo null %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   376
	View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   377
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   378
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   379
### Play lists ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   380
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   381
regex/\.([mM]3[uU]|[pP][lL][sS])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   382
	Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   383
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   384
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   385
### Video ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   386
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   387
regex/\.([aA][vV][iI])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   388
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   389
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   390
regex/\.([aA][sS][fFxX])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   391
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   392
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   393
regex/\.([dD][iI][vV][xX])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   394
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   395
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   396
regex/\.([mM][oO][vV]|[qQ][tT])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   397
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   398
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   399
regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   400
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   401
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   402
regex/\.([vV][oO][bB])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   403
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   404
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   405
regex/\.([wW][mM][vV])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   406
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   407
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   408
regex/\.([oO][gG][mM])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   409
	Include=video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   410
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   411
regex/\.([rR][aA]?[mM])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   412
	Open=run-mailcap audio/x-pn-realaudio:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   413
	#Open=(realplay %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   414
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   415
include/video
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   416
	Open=see %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   417
	#Open=(mplayer %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   418
	#Open=(gtv %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   419
	#Open=(xanim %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   420
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   421
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   422
### Documents ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   423
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   424
# Postscript
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   425
type/^PostScript
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   426
	Open=run-mailcap application/postscript:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   427
	#Open=(gv %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   428
	View=%view{ascii} ps2ascii %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   429
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   430
# PDF
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   431
type/^PDF
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   432
#	Open=run-mailcap application/pdf:%f 1>/dev/null 2>&1 &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   433
	Open=run-mailcap application/pdf:%f 2>/dev/null &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   434
	#Open=(xpdf %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   435
	#Open=(acroread %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   436
	#Open=(ghostview %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   437
	View=%view{ascii} pdftotext %f -
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   438
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   439
# CHM
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   440
shell/.chm
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   441
	Open=xchm %f &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   442
	#Open=(xpdf %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   443
	#Open=(acroread %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   444
	#Open=(ghostview %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   445
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   446
# The following code very ugly and should not be taken as example.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   447
# It should be cleaned up when the new format of mc.ext is developed.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   448
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   449
# DJVU
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   450
shell/.djvu
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   451
    Open=djview %f &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   452
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   453
# html
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   454
regex/\.([hH][tT][mM][lL]?)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   455
	Open=run-mailcap text/html:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   456
	#Open=(if test -n "" && test -n "$DISPLAY"; then ( file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   457
	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   458
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   459
# StarOffice 5.2
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   460
shell/.sdw
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   461
	Open=(ooffice %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   462
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   463
# StarOffice 6 and OpenOffice.org formats
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   464
regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   465
	Open=(ooffice %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   466
	View=%view{ascii} unzip -p %f content.xml | o3totxt
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   467
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   468
# AbiWord
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   469
shell/.abw
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   470
	Open=(abiword %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   471
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   472
# Microsoft Word Document
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   473
regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   474
	Open=run-mailcap application/msword:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   475
	#Open=(abiword %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   476
	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   477
type/^Microsoft\ Word
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   478
	Open=(abiword %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   479
	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   480
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   481
# RTF document
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   482
regex/\.([rR][tT][fF])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   483
	Open=run-mailcap text/rtf:%f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   484
	#Open=(abiword %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   485
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   486
# Microsoft Excel Worksheet
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   487
regex/\.([xX][lL][sSwW])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   488
	Open=run-mailcap application/vnd.ms-excel:%f &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   489
	#Open=(gnumeric %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   490
	View=%view{ascii} xls2csv %f || strings %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   491
type/^Microsoft\ Excel
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   492
	Open=run-mailcap application/vnd.ms-excel:%f &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   493
	#Open=(gnumeric %f >/dev/null 2>&1 &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   494
	View=%view{ascii} xls2csv %f || strings %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   495
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   496
# Use OpenOffice.org to open any MS Office documents
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   497
type/^Microsoft\ Office\ Document
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   498
	Open=(ooffice %f &)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   499
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   500
# Framemaker
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   501
type/^FrameMaker
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   502
	Open=fmclient -f %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   503
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   504
# DVI
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   505
regex/\.([dD][vV][iI])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   506
	Open=run-mailcap application/x-dvi:%f &
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   507
	#Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   508
	View=%view{ascii} dvi2tty %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   509
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   510
# TeX
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   511
regex/\.([Tt][Ee][Xx])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   512
	Open=sensible-editor %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   513
	#Open=%var{EDITOR:vi} %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   514
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   515
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   516
### Miscellaneous ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   517
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   518
# Makefile
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   519
regex/[Mm]akefile$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   520
	Open=make -f %f %{Enter parameters}
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   521
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   522
# Imakefile
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   523
shell/Imakefile
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   524
	Open=xmkmf -a
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   525
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   526
# Makefile.PL (MakeMaker)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   527
regex/^Makefile.(PL|pl)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   528
	Open=%var{PERL:perl} %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   529
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   530
# dbf
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   531
regex/\.([dD][bB][fF])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   532
       Open=%view{ascii} dbview %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   533
       View=%view{ascii} dbview -b %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   534
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   535
# REXX script
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   536
regex/\.(rexx?|cmd)$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   537
       Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   538
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   539
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   540
### Plain compressed files ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   541
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   542
# zip
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   543
type/^([Zz][Ii][Pp])\ archive
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   544
	Open=%cd %p#uzip
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   545
	View=%view{ascii} unzip -v %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   546
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   547
# zoo
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   548
regex/\.([Zz][Oo][Oo])$
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   549
	Open=%cd %p#uzoo
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   550
	View=%view{ascii} zoo l %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   551
	
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   552
# gzip
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   553
type/^gzip
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   554
	Open=gzip -dc %f | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   555
	View=%view{ascii} gzip -dc %f 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   556
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   557
# bzip2
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   558
type/^bzip2
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   559
	Open=bzip2 -dc %f | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   560
	View=%view{ascii} bzip2 -dc %f 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   561
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   562
# bzip
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   563
type/^bzip
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   564
	Open=bzip -dc %f | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   565
	View=%view{ascii} bzip -dc %f 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   566
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   567
# compress
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   568
type/^compress
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   569
	Open=gzip -dc %f | sensible-pager
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   570
	View=%view{ascii} gzip -dc %f 2>/dev/null
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   571
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   572
### Debian additions ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   573
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   574
# Gettext Catalogs
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   575
shell/.mo
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   576
	View=%view{ascii} msgunfmt %f || cat %f
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   577
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   578
### My. ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   579
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   580
shell/.my
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   581
    Open=echo %f %{Enter opt:} %{Enter file:}
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   582
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   583
### Default ###
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   584
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   585
# Default target for anything not described above
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   586
default/*
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   587
	Open=
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   588
	View=
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   589
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   590
### EOF ###