author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 07 Feb 2012 01:33:56 +0200 | |
changeset 302 | 8354ab3a7042 |
parent 301 | bc02af7c6a99 |
child 303 | d05577057b67 |
permissions | -rw-r--r-- |
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 |
### Archives ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
84 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
85 |
# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
86 |
regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
87 |
Open=%cd %p#utar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
88 |
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
|
89 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
90 |
regex/\.tar\.bz$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
91 |
# Open=%cd %p#utar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
92 |
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
|
93 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
94 |
regex/\.t(ar\.bz2|bz|b2)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
95 |
Open=%cd %p#utar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
96 |
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
|
97 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
98 |
# .tar.F - used in QNX |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
99 |
regex/\.tar\.F$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
100 |
# Open=%cd %p#utar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
101 |
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
|
102 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
103 |
# .qpr/.qpk - QNX Neutrino package installer files |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
104 |
regex/\.(qp[rk])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
105 |
Open=%cd %p#utar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
106 |
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
|
107 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
108 |
# tar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
109 |
regex/\.(tar|TAR)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
110 |
Open=%cd %p#utar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
111 |
View=%view{ascii} tar tvvf - < %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
112 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
113 |
# lha |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
114 |
type/^LHa\ .*archive |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
115 |
Open=%cd %p#ulha |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
116 |
View=%view{ascii} lha l %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
117 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
118 |
# arj |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
119 |
regex/\.a(rj|[0-9][0-9])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
120 |
Open=%cd %p#uarj |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
121 |
View=%view{ascii} arj l %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
122 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
123 |
# ha |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
124 |
regex/\.([Hh][Aa])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
125 |
Open=%cd %p#uha |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
126 |
View=%view{ascii} ha lf %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
127 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
128 |
# rar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
129 |
regex/\.[rR]([aA][rR]|[0-9][0-9])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
130 |
Open=%cd %p#urar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
131 |
View=%view{ascii} rar v -c- %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
132 |
|
120 | 133 |
# cab |
134 |
regex/\.([cC][aA][bB])$ |
|
135 |
Open=%cd %p#ucab |
|
136 |
View=%view{ascii} cabextract -l %f |
|
137 |
||
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
138 |
# cpio |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
139 |
shell/.cpio.Z |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
140 |
Open=%cd %p#ucpio |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
141 |
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
|
142 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
143 |
shell/.cpio.gz |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
144 |
Open=%cd %p#ucpio |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
145 |
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
|
146 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
147 |
shell/.cpio |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
148 |
Open=%cd %p#ucpio |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
149 |
View=%view{ascii} cpio -itv <'%f' 2>/dev/null |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
150 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
151 |
# ls-lR |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
152 |
regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
153 |
Open=%cd %p#lslR |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
154 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
155 |
# patch |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
156 |
regex/\.(diff|patch)(\.(bz2|gz|Z))?$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
157 |
Open=%cd %p#patchfs |
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 |
# ar library |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
160 |
regex/\.s?a$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
161 |
Open=%cd %p#uar |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
162 |
#Open=%view{ascii} ar tv %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
163 |
View=%view{ascii} file %f && nm %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
164 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
165 |
# trpm |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
166 |
regex/\.trpm$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
167 |
Open=%cd %p#trpm |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
168 |
View=%view{ascii} rpm -qivl --scripts `basename %p .trpm` |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
169 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
170 |
# RPM packages (SuSE uses *.spm for source packages) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
171 |
regex/\.(rpm|spm)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
172 |
Open=%cd %p#rpm |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
173 |
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
|
174 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
175 |
# deb |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
176 |
regex/\.u?deb$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
177 |
Open=%cd %p#deb |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
178 |
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
|
179 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
180 |
# dpkg |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
181 |
shell/.debd |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
182 |
Open=%cd %p#debd |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
183 |
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
|
184 |
# apt |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
185 |
shell/.deba |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
186 |
Open=%cd %p#deba |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
187 |
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
|
188 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
189 |
# ISO9660 |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
190 |
regex/\.iso$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
191 |
Open=%cd %p#iso9660 |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
192 |
View=%view{ascii} isoinfo -l -i %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
193 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
194 |
# 7zip archives (they are not man pages) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
195 |
shell/.7z |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
196 |
View=%view{ascii} 7za l %f 2>/dev/null |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
197 |
|
269 | 198 |
# .tar.xz, .txz |
199 |
regex/\.t(ar\.xz|xz)$ |
|
200 |
Open=%cd %p#utar |
|
201 |
View=%view{ascii} xz -dc %f 2>/dev/null | tar tvvf - |
|
202 |
||
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
203 |
### Documentation ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
204 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
205 |
# Texinfo |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
206 |
regex/\.(te?xi|texinfo)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
207 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
208 |
# GNU Info page |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
209 |
type/^Info\ text |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
210 |
Open=info -f %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
211 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
212 |
shell/.info |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
213 |
Open=info -f %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 |
# Manual page |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
216 |
# Exception - .so libraries are not manual pages |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
217 |
regex/\.(so|so\.[0-9\.]*)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
218 |
View=%view{ascii} file %f && nm %f |
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 |
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
221 |
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
|
222 |
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
|
223 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
224 |
# Troff with me macros. |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
225 |
# Exception - "read.me" is not a nroff file. |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
226 |
shell/read.me |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
227 |
Open= |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
228 |
View= |
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 |
shell/.me |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
231 |
Open=nroff -me %f | sensible-pager |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
232 |
View=%view{ascii,nroff} nroff -me %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 |
# Troff with ms macros. |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
235 |
shell/.ms |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
236 |
Open=nroff -ms %f | sensible-pager |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
237 |
View=%view{ascii,nroff} nroff -ms %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 |
# Manual page - compressed |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
240 |
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
|
241 |
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
|
242 |
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
|
243 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
244 |
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
245 |
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
|
246 |
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
|
247 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
248 |
regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
249 |
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
|
250 |
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
|
251 |
|
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 |
### Images ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
254 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
255 |
type/^GIF |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
256 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
257 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
258 |
type/^JPEG |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
259 |
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
|
260 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
261 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
262 |
type/^PC\ bitmap |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
263 |
Include=image |
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 |
type/^PNG |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
266 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
267 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
268 |
type/^TIFF |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
269 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
270 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
271 |
type/^PBM |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
272 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
273 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
274 |
type/^PGM |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
275 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
276 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
277 |
type/^PPM |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
278 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
279 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
280 |
type/^Netpbm |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
281 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
282 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
283 |
shell/.xcf |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
284 |
Open=gimp %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
285 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
286 |
shell/.xbm |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
287 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
288 |
#Open=bitmap %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
289 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
290 |
shell/.xpm |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
291 |
Include=image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
292 |
View=sxpm %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
293 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
294 |
include/image |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
295 |
Open=see %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
296 |
#Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
297 |
View=%view{ascii} identify %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
298 |
#View=%view{ascii} asciiview %f |
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 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
301 |
### Sound files ### |
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 |
regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
304 |
Open=run-mailcap audio/x-wav:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
305 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
306 |
regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
307 |
Open=run-mailcap application/x-mod:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
308 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
309 |
regex/\.([mM][pP]3)$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
310 |
Open=run-mailcap audio/mpeg:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
311 |
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
|
312 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
313 |
regex/\.([oO][gG][gG])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
314 |
Open=run-mailcap application/x-ogg:%f & |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
315 |
View=%view{ascii} ogginfo %s |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
316 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
317 |
regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
318 |
Open=run-mailcap audio/midi:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
319 |
#Open=timidity %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
320 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
321 |
regex/\.([wW][mM][aA])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
322 |
Open=mplayer -vo null %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
323 |
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
|
324 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
325 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
326 |
### Play lists ### |
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 |
regex/\.([mM]3[uU]|[pP][lL][sS])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
329 |
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
|
330 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
331 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
332 |
### Video ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
333 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
334 |
regex/\.([aA][vV][iI])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
335 |
Include=video |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
336 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
337 |
regex/\.([aA][sS][fFxX])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
338 |
Include=video |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
339 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
340 |
regex/\.([dD][iI][vV][xX])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
341 |
Include=video |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
342 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
343 |
regex/\.([mM][oO][vV]|[qQ][tT])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
344 |
Include=video |
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 |
regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
347 |
Include=video |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
348 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
349 |
regex/\.([vV][oO][bB])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
350 |
Include=video |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
351 |
|
302
8354ab3a7042
Fix: Old VLC under Debian have no association for wmv mimetype.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
301
diff
changeset
|
352 |
# Old VLC under Debian have no association for wmv mimetype. |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
353 |
regex/\.([wW][mM][vV])$ |
302
8354ab3a7042
Fix: Old VLC under Debian have no association for wmv mimetype.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
301
diff
changeset
|
354 |
Open=vlc %f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
355 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
356 |
regex/\.([oO][gG][mM])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
357 |
Include=video |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
358 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
359 |
regex/\.([rR][aA]?[mM])$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
360 |
Open=run-mailcap audio/x-pn-realaudio:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
361 |
#Open=(realplay %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
362 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
363 |
include/video |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
364 |
Open=see %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
365 |
#Open=(mplayer %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
366 |
#Open=(gtv %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
367 |
#Open=(xanim %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
368 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
369 |
### Documents ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
370 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
371 |
# Postscript |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
372 |
type/^PostScript |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
373 |
Open=run-mailcap application/postscript:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
374 |
#Open=(gv %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
375 |
View=%view{ascii} ps2ascii %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
376 |
|
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 |
type/^PDF |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
379 |
Open=run-mailcap application/pdf:%f 2>/dev/null & |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
380 |
#Open=(xpdf %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
381 |
#Open=(acroread %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
382 |
#Open=(ghostview %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
383 |
View=%view{ascii} pdftotext %f - |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
384 |
|
301
bc02af7c6a99
Remove unused comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
297
diff
changeset
|
385 |
shell/.pdf.gz |
bc02af7c6a99
Remove unused comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
297
diff
changeset
|
386 |
Open=(zxpdf %f &) |
bc02af7c6a99
Remove unused comments.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
297
diff
changeset
|
387 |
|
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
388 |
# CHM |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
389 |
shell/.chm |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
390 |
Open=xchm %f & |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
391 |
#Open=(xpdf %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
392 |
#Open=(acroread %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
393 |
#Open=(ghostview %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
394 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
395 |
# 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
|
396 |
# 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
|
397 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
398 |
# DJVU |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
399 |
shell/.djvu |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
400 |
Open=djview %f & |
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 |
# html |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
403 |
regex/\.([hH][tT][mM][lL]?)$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
404 |
Open=run-mailcap text/html:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
405 |
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
|
406 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
407 |
# StarOffice 5.2 |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
408 |
shell/.sdw |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
409 |
Open=(ooffice %f &) |
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 |
# StarOffice 6 and OpenOffice.org formats |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
412 |
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
|
413 |
Open=(ooffice %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
414 |
View=%view{ascii} unzip -p %f content.xml | o3totxt |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
415 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
416 |
# AbiWord |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
417 |
shell/.abw |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
418 |
Open=(abiword %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
419 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
420 |
# Microsoft Word Document |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
421 |
regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
422 |
Open=run-mailcap application/msword:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
423 |
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
|
424 |
type/^Microsoft\ Word |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
425 |
Open=(abiword %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
426 |
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
|
427 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
428 |
# RTF document |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
429 |
regex/\.([rR][tT][fF])$ |
296
0d7678e65dfa
Remove unused lines. Add & to prevent MC from locking until viewer exit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
274
diff
changeset
|
430 |
Open=run-mailcap text/rtf:%f & |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
431 |
#Open=(abiword %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
432 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
433 |
# Microsoft Excel Worksheet |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
434 |
regex/\.([xX][lL][sSwW])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
435 |
Open=run-mailcap application/vnd.ms-excel:%f & |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
436 |
#Open=(gnumeric %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
437 |
View=%view{ascii} xls2csv %f || strings %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
438 |
type/^Microsoft\ Excel |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
439 |
Open=run-mailcap application/vnd.ms-excel:%f & |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
440 |
#Open=(gnumeric %f >/dev/null 2>&1 &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
441 |
View=%view{ascii} xls2csv %f || strings %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
442 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
443 |
# Use OpenOffice.org to open any MS Office documents |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
444 |
type/^Microsoft\ Office\ Document |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
445 |
Open=(ooffice %f &) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
446 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
447 |
# Framemaker |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
448 |
type/^FrameMaker |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
449 |
Open=fmclient -f %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
450 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
451 |
# DVI |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
452 |
regex/\.([dD][vV][iI])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
453 |
Open=run-mailcap application/x-dvi:%f & |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
454 |
#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
|
455 |
View=%view{ascii} dvi2tty %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
456 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
457 |
# TeX |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
458 |
regex/\.([Tt][Ee][Xx])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
459 |
Open=sensible-editor %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
460 |
#Open=%var{EDITOR:vi} %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
461 |
|
274
efb78fb374ee
Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
269
diff
changeset
|
462 |
shell/.fb2 |
efb78fb374ee
Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
269
diff
changeset
|
463 |
Open=fbreader %f & |
efb78fb374ee
Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
269
diff
changeset
|
464 |
|
efb78fb374ee
Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
269
diff
changeset
|
465 |
shell/.epub |
efb78fb374ee
Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
269
diff
changeset
|
466 |
Open=fbreader %f & |
efb78fb374ee
Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
269
diff
changeset
|
467 |
|
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
468 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
469 |
### Miscellaneous ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
470 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
471 |
# Makefile |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
472 |
regex/[Mm]akefile$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
473 |
Open=make -f %f %{Enter parameters} |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
474 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
475 |
# Imakefile |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
476 |
shell/Imakefile |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
477 |
Open=xmkmf -a |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
478 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
479 |
# Makefile.PL (MakeMaker) |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
480 |
regex/^Makefile.(PL|pl)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
481 |
Open=%var{PERL:perl} %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
482 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
483 |
# dbf |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
484 |
regex/\.([dD][bB][fF])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
485 |
Open=%view{ascii} dbview %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
486 |
View=%view{ascii} dbview -b %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
487 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
488 |
# REXX script |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
489 |
regex/\.(rexx?|cmd)$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
490 |
Open=rexx %f %{Enter parameters};echo "Press ENTER";read y |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
491 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
492 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
493 |
### Plain compressed files ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
494 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
495 |
# zip |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
496 |
type/^([Zz][Ii][Pp])\ archive |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
497 |
Open=%cd %p#uzip |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
498 |
View=%view{ascii} unzip -v %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 |
# zoo |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
501 |
regex/\.([Zz][Oo][Oo])$ |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
502 |
Open=%cd %p#uzoo |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
503 |
View=%view{ascii} zoo l %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
504 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
505 |
# gzip |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
506 |
type/^gzip |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
507 |
Open=gzip -dc %f | sensible-pager |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
508 |
View=%view{ascii} gzip -dc %f 2>/dev/null |
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 |
# bzip2 |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
511 |
type/^bzip2 |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
512 |
Open=bzip2 -dc %f | sensible-pager |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
513 |
View=%view{ascii} bzip2 -dc %f 2>/dev/null |
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 |
# bzip |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
516 |
type/^bzip |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
517 |
Open=bzip -dc %f | sensible-pager |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
518 |
View=%view{ascii} bzip -dc %f 2>/dev/null |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
519 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
520 |
# compress |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
521 |
type/^compress |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
522 |
Open=gzip -dc %f | sensible-pager |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
523 |
View=%view{ascii} gzip -dc %f 2>/dev/null |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
524 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
525 |
### Debian additions ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
526 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
527 |
# Gettext Catalogs |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
528 |
shell/.mo |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
529 |
View=%view{ascii} msgunfmt %f || cat %f |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
530 |
|
297
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
531 |
################################################################ |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
532 |
# My preference. |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
533 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
534 |
shell/.my |
297
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
535 |
Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:} |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
536 |
|
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
537 |
# Open in Emacs. |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
538 |
regex/\.(c|cpp|cxx) |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
539 |
Open=e %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
540 |
# Open=sensible-editor %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
541 |
regex/\.(h|hpp) |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
542 |
Open=e %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
543 |
shell/.(s|S) |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
544 |
Open=e %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
545 |
shell/.java |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
546 |
Open=e %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
547 |
shell/.f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
548 |
Open=e %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
549 |
regex/\.(sh|bash|tcsh) |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
550 |
Open=e %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
551 |
|
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
552 |
# Object files. |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
553 |
regex/\.(o|obj) |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
554 |
#Open=sensible-pager %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
555 |
View=%view{ascii} file %f && nm %f |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
556 |
shell/.class |
94be7bf3d9a3
Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
296
diff
changeset
|
557 |
View=%view{ascii} tmp=%p; javap -c ${tmp%%.class} |
3
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
558 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
559 |
### Default ### |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
560 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
561 |
# Default target for anything not described above |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
562 |
default/* |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
563 |
Open= |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
564 |
View= |
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
565 |
|
a1e69064ee0b
Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
566 |
### EOF ### |