Code indentation in src/editor directory
[midnight-commander.git] / misc / mc.ext.in
blob88d8ab426edfdde22da8729c833ab93dfd8620cd
1 # Midnight Commander 3.0 extension file
2 # Warning: Structure of this file has changed completely with version 3.0
4 # All lines starting with # or empty lines are thrown away.
5 # Lines starting in the first column should have following format:
7 # keyword/descNL, i.e. everything after keyword/ until new line is desc
9 # keyword can be:
11 #    shell (desc is, when starting with a dot, any extension (no wildcars),
12 #          i.e. matches all the files *desc . Example: .tar matches *.tar;
13 #          if it doesn't start with a dot, it matches only a file of that name)
15 #    regex (desc is an extended regular expression)
16 #          Please note that we are using the GNU regex library and thus
17 #          \| matches the literal | and | has special meaning (or) and
18 #          () have special meaning and \( \) stand for literal ( ).
20 #    type  (file matches this if `file %f` matches regular expression desc
21 #          (the filename: part from `file %f` is removed))
23 #    directory (matches any directory matching regular expression desc)
25 #    include (matches an include directive)
27 #    default (matches any file no matter what desc is)
29 # Other lines should start with a space or tab and should be in the format:
31 # keyword=commandNL (with no spaces around =), where keyword should be:
33 #    Open (if the user presses Enter or doubleclicks it),
35 #    View (F3), Edit (F4)
37 #    Include is the keyword used to add any further entries from an include/
38 #    section
40 # command is any one-line shell command, with the following substitutions:
42 # %% -> % character
43 # %p -> name of the current file (without path, but pwd is its path)
44 # %f -> name of the current file. Unlike %p, if file is located on a
45 #       non-local virtual filesystem, i.e. either tarfs or ftpfs,
46 #       then the file will be temporarily copied into a local directory
47 #       and %f will be the full path to this local temporal file.
48 #       If you don't want to get a local copy and want to get the
49 #       virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
50 #       use %d/%p instead of %f.
51 # %d -> name of the current directory (pwd, without trailing slash)
52 # %s -> "selected files", i.e. space separated list of tagged files if any
53 #       or name of the current file
54 # %t -> list of tagged files
55 # %u -> list of tagged files (they'll be untaged after the command)
57 # (If these 6 letters are in uppercase, they refer to the other panel.
58 # But you shouldn't have to use it in this file.)
61 # %cd -> the rest is a path mc should change into (cd won't work, since it's
62 #       a child process).  %cd handles even vfs names.
64 # %view -> the command you type will be piped into mc's internal file viewer
65 #       if you type only the %view and no command, viewer will load %f file
66 #       instead (i.e. no piping, so it is different to %view cat %f)
67 #       %view may be directly followed by {} with a list of any of
68 #       ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
69 #       text using backspace for bold and underscore) and unform
70 #       (no highlighting for nroff sequences) separated by commas.
72 # %var -> You use it like this: %var{VAR:default}.  This macro will expand
73 #       to the value of the VAR variable in the environment if it's set
74 #       otherwise the value in default will be used.  This is similar to
75 #       the Bourne shell ${VAR-default} construct.
77 # Rules are applied from top to bottom, thus the order is important.
78 # If some actions are missing, search continues as if this target didn't
79 # match (i.e. if a file matches the first and second entry and View action
80 # is missing in the first one, then on pressing F3 the View action from
81 # the second entry will be used. default should catch all the actions.
83 # Any new entries you develop for you are always welcome if they are
84 # useful on more than one system.  You can post your modifications
85 # as tickets at www.midnight-commander.org
88 ### Changes ###
90 # Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
93 ### TODO ###
95 # Postscript    Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
96 # Images                asciiview
98 # All X Apps    [Nothing/Warning] if no DISPLAY
99 # Not found     [Default/Warning]
100 # Empty Output  [Default/Warning]
101 # Edit:         CopyOut+EDIT+CopyIn
102 # Security      Check gzip/bzip EDIT (mktemp)
104 # Maybe:        Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
107 ### Archives ###
109 # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
110 regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
111         Open=%cd %p#utar
112         View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
114 regex/\.tar\.bz$
115         # Open=%cd %p#utar
116         View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
118 regex/\.t(ar\.bz2|bz2?|b2)$
119         Open=%cd %p#utar
120         View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
122 # .tar.lzma, .tlz
123 regex/\.t(ar\.lzma|lz)$
124         Open=%cd %p#utar
125         View=%view{ascii} lzma -dc %f 2>/dev/null | tar tvvf -
127 # .tar.xz, .txz
128 regex/\.t(ar\.xz|xz)$
129         Open=%cd %p#utar
130         View=%view{ascii} xz -dc %f 2>/dev/null | tar tvvf -
132 # .tar.F - used in QNX
133 regex/\.tar\.F$
134         # Open=%cd %p#utar
135         View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
137 # .qpr/.qpk - QNX Neutrino package installer files
138 regex/\.(qp[rk])$
139         Open=%cd %p#utar
140         View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
142 # tar
143 regex/\.(tar|TAR)$
144         Open=%cd %p#utar
145         View=%view{ascii} tar tvvf - < %f
147 # lha
148 type/^LHa\ .*archive
149         Open=%cd %p#ulha
150         View=%view{ascii} lha l %f
152 # arj
153 regex/\.a(rj|[0-9][0-9])$
154         Open=%cd %p#uarj
155         View=%view{ascii} unarj l %f
157 # cab
158 regex/\.([cC][aA][bB])$
159         Open=%cd %p#ucab
160         View=%view{ascii} cabextract -l %f
162 # ha
163 regex/\.([Hh][Aa])$
164         Open=%cd %p#uha
165         View=%view{ascii} ha lf %f
167 # rar
168 regex/\.[rR]([aA][rR]|[0-9][0-9])$
169         Open=%cd %p#urar
170         View=%view{ascii} rar v -c- %f
172 # ALZip
173 regex/\.(alz|ALZ)$
174         Open=%cd %p#ualz
175         View=%view{ascii} unalz -l %f
177 # cpio
178 shell/.cpio.Z
179         Open=%cd %p#ucpio
180         View=%view{ascii} gzip -dc %f | cpio -itv 2>/dev/null
182 shell/.cpio.gz
183         Open=%cd %p#ucpio
184         View=%view{ascii} gzip -dc %f | cpio -itv 2>/dev/null
186 shell/.cpio
187         Open=%cd %p#ucpio
188         View=%view{ascii} cpio -itv < %f 2>/dev/null
190 # ls-lR
191 regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
192         Open=%cd %p#lslR
194 # patch
195 regex/\.(diff|patch)(\.bz2)$
196         Open=%cd %p#patchfs
197         View=%view{ascii} bzip2 -dc %f 2>/dev/null
199 regex/\.(diff|patch)(\.(gz|Z))$
200         Open=%cd %p#patchfs
201         View=%view{ascii} gzip -dc %f 2>/dev/null
203 regex/\.(diff|patch)$
204         Open=%cd %p#patchfs
205         View=%view{ascii} /bin/cat %f 2>/dev/null
207 # ar library
208 regex/\.s?a$
209         Open=%cd %p#uar
210         #Open=%view{ascii} ar tv %f
211         View=%view{ascii} file %f && nm %f
213 # trpm
214 regex/\.trpm$
215         Open=%cd %p#trpm
216         View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
218 # RPM packages (SuSE uses *.spm for source packages)
219 regex/\.(src\.rpm|spm)$
220         Open=%cd %p#rpm
221         View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
223 regex/\.rpm$
224         Open=%cd %p#rpm
225         View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
227 # deb
228 regex/\.u?deb$
229         Open=%cd %p#deb
230         View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
232 # dpkg
233 shell/.debd
234         Open=%cd %p#debd
235         View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
236 # apt
237 shell/.deba
238         Open=%cd %p#deba
239         View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
241 # ISO9660
242 regex/\.([iI][sS][oO])$
243         Open=%cd %p#iso9660
244         View=%view{ascii} isoinfo -l -i %f
246 # 7zip archives (they are not man pages)
247 regex/\.(7z|7Z)$
248         Open=%cd %p#u7z
249         View=%view{ascii} 7za l %f 2>/dev/null
251 # Mailboxes
252 type/^ASCII\ mail\ text
253         Open=%cd %p#mailfs
256 ### Sources ###
258 # C
259 shell/.c
260         Open=%var{EDITOR:vi} %f
262 # Fortran
263 shell/.f
264         Open=%var{EDITOR:vi} %f
266 # Header
267 regex/\.(h|hpp)$
268         Open=%var{EDITOR:vi} %f
270 # Object
271 type/^ELF
272         #Open=%var{PAGER:more} %f
273         View=%view{ascii} file %f && nm %f
275 # Asm
276 shell/.s
277         Open=%var{EDITOR:vi} %f
279 # C++
280 regex/\.(C|cc|cpp)$
281         Open=%var{EDITOR:vi} %f
284 ### Documentation ###
286 # Texinfo
287 regex/\.(te?xi|texinfo)$
289 # GNU Info page
290 type/^Info\ text
291         Open=info -f %f
293 shell/.info
294         Open=info -f %f
296 # Manual page
297 # Exception - .so libraries are not manual pages
298 regex/\.(so|so\.[0-9\.]*)$
299         View=%view{ascii} file %f && nm %f
301 regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
302         Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
303         View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
305 # Perl pod page
306 shell/.pod
307         Open=pod2man %f | nroff @MAN_FLAGS@ @MANDOC@ | %var{PAGER:more}
308         View=%view{ascii,nroff} pod2man %f | nroff @MAN_FLAGS@ @MANDOC@
310 # Troff with me macros.
311 # Exception - "read.me" is not a nroff file.
312 shell/read.me
313         Open=
314         View=
316 shell/.me
317         Open=nroff @MAN_FLAGS@ -me %f | %var{PAGER:more}
318         View=%view{ascii,nroff} nroff @MAN_FLAGS@ -me %f
320 # Troff with ms macros.
321 shell/.ms
322         Open=nroff @MAN_FLAGS@ -ms %f | %var{PAGER:more}
323         View=%view{ascii,nroff} nroff @MAN_FLAGS@ -ms %f
325 # Manual page - compressed
326 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
327         Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
328         View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
330 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
331         Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
332         View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
334 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
335         Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
336         View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
338 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
339         Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
340         View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
342 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
343         Open=case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
344         View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
346 # CHM
347 regex/\.(chm|CHM)$
348         Open=which kchmviewer > /dev/null 2>&1 && (kchmviewer %f &) || (xchm %f &)
350 ### Images ###
352 type/^GIF
353         Include=image
355 type/^JPEG
356         View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f 2>/dev/null
357         Include=image
359 type/^PC\ bitmap
360         Include=image
362 type/^PNG
363         Include=image
365 type/^TIFF
366         Include=image
368 type/^PBM
369         Include=image
371 type/^PGM
372         Include=image
374 type/^PPM
375         Include=image
377 type/^Netpbm
378         Include=image
380 shell/.xcf
381         Open=(gimp %f &)
383 shell/.xbm
384         Open=bitmap %f
386 shell/.xpm
387         Include=image
388         View=sxpm %f
390 shell/.ico
391         Include=image
393 include/image
394         Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
395         View=%view{ascii} identify %f
396         #View=%view{ascii} asciiview %f
399 ### Sound files ###
401 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
402        Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
404 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
405        Open=mikmod %f
406        #Open=tracker %f
408 regex/\.([wW][aA][wW]22)$
409        Open=vplay -s 22 %f
411 regex/\.([mM][pP]3)$
412         Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
413         View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
415 regex/\.([oO][gG][gG|aA|vV|xX])$
416         Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
417         View=%view{ascii} ogginfo %s
419 regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
420         Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
422 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
423         Open=timidity %f
425 regex/\.([wW][mM][aA])$
426         Open=mplayer -vo null %f
427         View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
430 ### Play lists ###
432 regex/\.([mM]3[uU]|[pP][lL][sS])$
433         Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
436 ### Video ###
438 regex/\.([aA][vV][iI])$
439         Include=video
441 regex/\.([aA][sS][fFxX])$
442         Include=video
444 regex/\.([dD][iI][vV][xX])$
445         Include=video
447 regex/\.([mM][kK][vV])$
448         Include=video
450 regex/\.([mM][oO][vV]|[qQ][tT])$
451         Include=video
453 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
454         Include=video
456 regex/\.([vV][oO][bB])$
457         Include=video
459 regex/\.([wW][mM][vV])$
460         Include=video
462 regex/\.([fF][lL][iIcCvV])$
463         Include=video
465 regex/\.([oO][gG][mM])$
466         Include=video
468 regex/\.([rR][aA]?[mM])$
469         Open=(realplay %f >/dev/null 2>&1 &)
471 include/video
472         Open=(mplayer %f >/dev/null 2>&1 &)
473         #Open=(gtv %f >/dev/null 2>&1 &)
474         #Open=(xanim %f >/dev/null 2>&1 &)
477 ### Documents ###
479 # Postscript
480 type/^PostScript
481         Open=(gv %f &)
482         View=%view{ascii} ps2ascii %f
484 # PDF
485 type/^PDF
486         Open=(xpdf %f &)
487         #Open=(acroread %f &)
488         #Open=(ghostview %f &)
489         View=%view{ascii} pdftotext %f -
491 # The following code very ugly and should not be taken as example.
492 # It should be cleaned up when the new format of mc.ext is developed.
494 # html
495 regex/\.([hH][tT][mM][lL]?)$
496         Open=(if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
497         View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
499 # StarOffice 5.2
500 shell/.sdw
501         Open=(ooffice %f &)
503 # StarOffice 6 and OpenOffice.org formats
504 regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
505         Open=(ooffice %f &)
506         View=%view{ascii} odt2txt %f
508 # AbiWord
509 shell/.abw
510         Open=(abiword %f &)
512 # Microsoft Word Document
513 regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
514         Open=(abiword %f >/dev/null 2>&1 &)
515         View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
516 type/^Microsoft\ Word
517         Open=(abiword %f >/dev/null 2>&1 &)
518         View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
520 # RTF document
521 regex/\.([rR][tT][fF])$
522         Open=(abiword %f >/dev/null 2>&1 &)
524 # Microsoft Excel Worksheet
525 regex/\.([xX][lL][sSwW])$
526         Open=(gnumeric %f >/dev/null 2>&1 &)
527         View=%view{ascii} xls2csv %f || strings %f
528 type/^Microsoft\ Excel
529         Open=(gnumeric %f >/dev/null 2>&1 &)
530         View=%view{ascii} xls2csv %f || strings %f
532 # Use OpenOffice.org to open any MS Office documents
533 type/^Microsoft\ Office\ Document
534         Open=(ooffice %f &)
536 # Framemaker
537 type/^FrameMaker
538         Open=fmclient -f %f
540 # DVI
541 regex/\.([dD][vV][iI])$
542         Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
543         View=%view{ascii} dvi2tty %f
545 # TeX
546 regex/\.([Tt][Ee][Xx])$
547         Open=%var{EDITOR:vi} %f
549 # DjVu
550 regex/\.(djvu|DJVU)$
551         Open=djview %f &
553 ### Miscellaneous ###
555 # Makefile
556 regex/[Mm]akefile$
557         Open=make -f %f %{Enter parameters}
559 # Imakefile
560 shell/Imakefile
561         Open=xmkmf -a
563 # Makefile.PL (MakeMaker)
564 regex/^Makefile.(PL|pl)$
565         Open=%var{PERL:perl} %f
567 # dbf
568 regex/\.([dD][bB][fF])$
569        Open=%view{ascii} dbview %f
570        View=%view{ascii} dbview -b %f
572 # REXX script
573 regex/\.(rexx?|cmd)$
574        Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
576 # Disk images for Commodore computers (VIC20, C64, C128)
577 regex/\.(d64|D64)$
578         Open=%cd %p#uc1541
579         View=%view{ascii} c1541 %f -list
580         Extract=c1541 %f -extract
582 # Glade, a user interface designer for GTK+ and GNOME
583 regex/\.([Gg][Ll][Aa][Dd][Ee])$
584         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
586 # Gettext Catalogs
587 shell/.mo
588         View=%view{ascii} msgunfmt %f || cat %f
590 # lyx
591 regex/\.(lyx|LYX)$
592         Open=lyx %f
593         View=%view{ascii} lyxcat %f
595 ### Plain compressed files ###
597 # ace
598 regex/\.(ace|ACE)$
599         Open=%cd %p#uace
600         View=%view{ascii} unace l %f
601         Extract=unace x %f
603 # arc
604 regex/\.(arc|ARC)$
605         Open=%cd %p#uarc
606         View=%view{ascii} arc l %f
607         Extract=arc x %f '*'
608         Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
610 # zip
611 type/^([Zz][Ii][Pp])\ archive
612         Open=%cd %p#uzip
613         View=%view{ascii} unzip -v %f
615 # zoo
616 regex/\.([Zz][Oo][Oo])$
617         Open=%cd %p#uzoo
618         View=%view{ascii} zoo l %f
620 # gzip
621 type/^gzip
622         Open=gzip -dc %f | %var{PAGER:more}
623         View=%view{ascii} gzip -dc %f 2>/dev/null
625 regex/\.(gz|Z)$
626         View=%view{ascii} gzip -dc %f 2>/dev/null
628 # bzip2
629 type/^bzip2
630         Open=bzip2 -dc %f | %var{PAGER:more}
631         View=%view{ascii} bzip2 -dc %f 2>/dev/null
633 regex/\.bz2?$
634         View=%view{ascii} bzip2 -dc %f 2>/dev/null
636 # bzip
637 type/^bzip
638         Open=bzip -dc %f | %var{PAGER:more}
639         View=%view{ascii} bzip -dc %f 2>/dev/null
641 # compress
642 type/^compress
643         Open=gzip -dc %f | %var{PAGER:more}
644         View=%view{ascii} gzip -dc %f 2>/dev/null
646 # lzma
647 regex/\.lzma$
648         Open=lzma -dc %f | %var{PAGER:more}
649         View=%view{ascii} lzma -dc %f 2>/dev/null
651 # xz
652 regex/\.xz$
653         Open=xz -dc %f | %var{PAGER:more}
654         View=%view{ascii} xz -dc %f 2>/dev/null
657 ### Default ###
659 # Default target for anything not described above
660 default/*
661         Open=
662         View=
665 ### EOF ###