110 Open=info -f %f |
104 Open=info -f %f |
111 |
105 |
112 shell/.info |
106 shell/.info |
113 Open=info -f %f |
107 Open=info -f %f |
114 |
108 |
115 ### Images ### |
|
116 |
|
117 type/^GIF |
|
118 Include=image |
|
119 |
|
120 type/^JPEG |
|
121 View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f |
|
122 Include=image |
|
123 |
|
124 type/^PC\ bitmap |
|
125 Include=image |
|
126 |
|
127 type/^PNG |
|
128 Include=image |
|
129 |
|
130 type/^TIFF |
|
131 Include=image |
|
132 |
|
133 type/^PBM |
|
134 Include=image |
|
135 |
|
136 type/^PGM |
|
137 Include=image |
|
138 |
|
139 type/^PPM |
|
140 Include=image |
|
141 |
|
142 type/^Netpbm |
|
143 Include=image |
|
144 |
|
145 shell/.xcf |
|
146 Open=(gimp %f &) |
|
147 |
|
148 shell/.xbm |
|
149 Include=image |
|
150 #Open=bitmap %f |
|
151 |
|
152 shell/.xpm |
|
153 Include=image |
|
154 View=sxpm %f |
|
155 |
|
156 shell/.ico |
|
157 Include=image |
|
158 |
|
159 include/image |
109 include/image |
160 Open=(see %f &) |
110 Open=(see %f &) |
161 View=%view{ascii} identify %f |
111 View=%view{ascii} identify %f |
162 #View=%view{ascii} asciiview %f |
112 #View=%view{ascii} asciiview %f |
163 |
113 |
164 |
|
165 ### Sound files ### |
|
166 |
|
167 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$ |
|
168 Open=run-mailcap audio/x-wav:%f & |
|
169 |
|
170 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$ |
|
171 Open=run-mailcap application/x-mod:%f & |
|
172 |
|
173 regex/\.([mM][pP]3)$ |
|
174 Open=run-mailcap audio/mpeg:%f & |
|
175 View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p' |
|
176 |
|
177 regex/\.([oO][gG][gG|aA|vV|xX])$ |
|
178 Open=run-mailcap application/x-ogg:%f & |
|
179 View=%view{ascii} ogginfo %s |
|
180 |
|
181 regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$ |
|
182 Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi |
|
183 |
|
184 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$ |
|
185 Open=run-mailcap audio/midi:%f |
|
186 |
|
187 regex/\.([wW][mM][aA])$ |
|
188 Open=mplayer -vo null %f |
|
189 View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f |
|
190 |
|
191 |
|
192 ### Play lists ### |
|
193 |
|
194 regex/\.([mM]3[uU]|[pP][lL][sS])$ |
|
195 Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi |
|
196 |
|
197 |
|
198 ### Video ### |
|
199 |
|
200 regex/\.([aA][vV][iI])$ |
|
201 Include=video |
|
202 |
|
203 regex/\.([aA][sS][fFxX])$ |
|
204 Include=video |
|
205 |
|
206 regex/\.([dD][iI][vV][xX])$ |
|
207 Include=video |
|
208 |
|
209 regex/\.([mM][kK][vV])$ |
|
210 Include=video |
|
211 |
|
212 regex/\.([mM][oO][vV]|[qQ][tT])$ |
|
213 Include=video |
|
214 |
|
215 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$ |
|
216 Include=video |
|
217 |
|
218 # MPEG-2 TS container + H.264 codec |
|
219 regex/\.([mM][tT][sS])$ |
|
220 Include=video |
|
221 |
|
222 regex/\.([vV][oO][bB])$ |
|
223 Include=video |
|
224 |
|
225 # Old VLC under Debian have no association for wmv mimetype. |
114 # Old VLC under Debian have no association for wmv mimetype. |
226 regex/\.([wW][mM][vV])$ |
115 regex/\.([wW][mM][vV])$ |
227 Open=vlc %f & |
116 Open=vlc %f & |
228 |
117 |
|
118 regex/\.([aA][vV][iI])$ |
|
119 Include=video |
|
120 regex/\.(3[gG][pP])$ |
|
121 Include=video |
|
122 regex/\.([aA][sS][fFxX])$ |
|
123 Include=video |
|
124 regex/\.([dD][iI][vV][xX])$ |
|
125 Include=video |
|
126 regex/\.([mM][kK][vV])$ |
|
127 Include=video |
|
128 regex/\.([mM][oO][vV]|[qQ][tT])$ |
|
129 Include=video |
|
130 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$ |
|
131 Include=video |
|
132 # MPEG-2 TS container + H.264 codec |
|
133 regex/\.([mM][tT][sS])$ |
|
134 Include=video |
|
135 regex/\.([vV][oO][bB])$ |
|
136 Include=video |
|
137 regex/\.([wW][mM][vV])$ |
|
138 Include=video |
229 regex/\.([fF][lL][iIcCvV])$ |
139 regex/\.([fF][lL][iIcCvV])$ |
230 Include=video |
140 Include=video |
231 |
|
232 regex/\.([oO][gG][mM])$ |
141 regex/\.([oO][gG][mM])$ |
233 Include=video |
142 Include=video |
234 |
143 |
235 regex/\.([rR][aA]?[mM])$ |
|
236 Open=run-mailcap audio/x-pn-realaudio:%f & |
|
237 #Open=(realplay %f >/dev/null 2>&1 &) |
|
238 |
|
239 include/video |
144 include/video |
240 Open=see %f |
145 Open=see %f |
241 #Open=(mplayer %f >/dev/null 2>&1 &) |
|
242 #Open=(gtv %f >/dev/null 2>&1 &) |
|
243 #Open=(xanim %f >/dev/null 2>&1 &) |
|
244 |
146 |
245 |
|
246 ### Documents ### |
|
247 |
|
248 # Postscript |
|
249 type/^PostScript |
|
250 Open=run-mailcap application/postscript:%f & |
|
251 #Open=(gv %f &) |
|
252 View=%view{ascii} ps2ascii %f |
|
253 |
|
254 # PDF |
|
255 type/^PDF |
|
256 Open=run-mailcap application/pdf:%f 2>/dev/null & |
|
257 #Open=(xpdf %f &) |
|
258 #Open=(acroread %f &) |
|
259 #Open=(ghostview %f &) |
|
260 View=%view{ascii} pdftotext %f - |
|
261 |
|
262 shell/.pdf.gz |
|
263 Open=(zxpdf %f &) |
|
264 |
|
265 # CHM |
|
266 shell/.chm |
147 shell/.chm |
267 Open=xchm %f & |
148 Open=xchm %f & |
268 #Open=(xpdf %f &) |
|
269 #Open=(acroread %f &) |
|
270 #Open=(ghostview %f &) |
|
271 |
149 |
272 # The following code very ugly and should not be taken as example. |
|
273 # It should be cleaned up when the new format of mc.ext is developed. |
|
274 |
|
275 # DJVU |
|
276 shell/.djvu |
150 shell/.djvu |
277 Open=djview %f & |
151 Open=djview %f & |
278 |
|
279 # html |
|
280 regex/\.([hH][tT][mM][lL]?)$ |
|
281 Open=run-mailcap text/html:%f & |
|
282 View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f |
|
283 |
|
284 # StarOffice 5.2 |
|
285 shell/.sdw |
|
286 Open=(libreoffice %f &) |
|
287 |
|
288 # StarOffice 6 and OpenOffice.org formats |
|
289 regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$ |
|
290 Open=(libreoffice %f &) |
|
291 View=%view{ascii} odt2txt %f |
|
292 |
|
293 # AbiWord |
|
294 shell/.abw |
|
295 Open=(abiword %f &) |
|
296 |
|
297 # Microsoft Word Document |
|
298 regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$ |
|
299 Open=run-mailcap application/msword:%f & |
|
300 View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f |
|
301 type/^Microsoft\ Word |
|
302 Open=(abiword %f >/dev/null 2>&1 &) |
|
303 View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f |
|
304 |
|
305 # RTF document |
|
306 regex/\.([rR][tT][fF])$ |
|
307 Open=run-mailcap text/rtf:%f & |
|
308 #Open=(abiword %f >/dev/null 2>&1 &) |
|
309 |
|
310 # Microsoft Excel Worksheet |
|
311 regex/\.([xX][lL][sSwW])$ |
|
312 Open=(gnumeric %f >/dev/null 2>&1 &) |
|
313 View=%view{ascii} xls2csv %f || strings %f |
|
314 type/^Microsoft\ Excel |
|
315 Open=(gnumeric %f >/dev/null 2>&1 &) |
|
316 View=%view{ascii} xls2csv %f || strings %f |
|
317 |
|
318 # Use OpenOffice.org to open any MS Office documents |
|
319 type/^Microsoft\ Office\ Document |
|
320 Open=(libreoffice %f &) |
|
321 |
|
322 # Framemaker |
|
323 type/^FrameMaker |
|
324 Open=fmclient -f %f |
|
325 |
|
326 # DVI |
|
327 regex/\.([dD][vV][iI])$ |
|
328 Open=run-mailcap %f 2>&1 & |
|
329 View=%view{ascii} catdvi %f |
|
330 |
152 |
331 shell/.fb2 |
153 shell/.fb2 |
332 Open=fbreader %f & |
154 Open=fbreader %f & |
333 |
155 |
334 shell/.epub |
156 shell/.epub |
335 Open=fbreader %f & |
157 Open=fbreader %f & |
336 |
|
337 # DjVu |
|
338 regex/\.(djvu|DJVU)$ |
|
339 Open=djview %f & |
|
340 |
|
341 ### Miscellaneous ### |
|
342 |
158 |
343 # Makefile |
159 # Makefile |
344 regex/[Mm]akefile$ |
160 regex/[Mm]akefile$ |
345 Open=make -f %f %{Enter parameters} |
161 Open=make -f %f %{Enter parameters} |
346 |
162 |
349 Open=xmkmf -a |
165 Open=xmkmf -a |
350 |
166 |
351 # Makefile.PL (MakeMaker) |
167 # Makefile.PL (MakeMaker) |
352 regex/^Makefile.(PL|pl)$ |
168 regex/^Makefile.(PL|pl)$ |
353 Open=%var{PERL:perl} %f |
169 Open=%var{PERL:perl} %f |
354 |
|
355 # dbf |
|
356 regex/\.([dD][bB][fF])$ |
|
357 Open=%view{ascii} dbview %f |
|
358 View=%view{ascii} dbview -b %f |
|
359 |
|
360 # REXX script |
|
361 regex/\.(rexx?|cmd)$ |
|
362 Open=rexx %f %{Enter parameters};echo "Press ENTER";read y |
|
363 |
|
364 # Disk images for Commodore computers (VIC20, C64, C128) |
|
365 regex/\.(d64|D64)$ |
|
366 Open=%cd %p/uc1541:// |
|
367 View=%view{ascii} c1541 %f -list |
|
368 Extract=c1541 %f -extract |
|
369 |
|
370 # Glade, a user interface designer for GTK+ and GNOME |
|
371 regex/\.([Gg][Ll][Aa][Dd][Ee])$ |
|
372 Open=if glade-3 --version >/dev/null 2>&1; then (glade-3 %f >/dev/null 2>&1 &); else (glade-2 %f >/dev/null 2>&1 &); fi |
|
373 |
|
374 # Gettext Catalogs |
|
375 shell/.mo |
|
376 View=%view{ascii} msgunfmt %f || cat %f |
|
377 |
|
378 # lyx |
|
379 regex/\.(lyx|LYX)$ |
|
380 Open=lyx %f |
|
381 View=%view{ascii} lyxcat %f |
|
382 |
|
383 # torrent |
|
384 regex/\.([tT][oO][rR][rR][eE][nN][tT])$ |
|
385 View=%view{ascii} ctorrent -x %f 2>/dev/null |
|
386 |
|
387 ### Debian additions ### |
|
388 |
|
389 # Gettext Catalogs |
|
390 shell/.mo |
|
391 View=%view{ascii} msgunfmt %f || cat %f |
|
392 |
|
393 ################################################################ |
|
394 # My preference. |
|
395 |
170 |
396 shell/.my |
171 shell/.my |
397 Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:} |
172 Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:} |
398 |
173 |
399 # Open in Emacs. |
174 # Open in Emacs. |