mc.ext.in 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. # Midnight Commander 3.0 extension file
  2. # Warning: Structure of this file has changed completely with version 3.0
  3. #
  4. # All lines starting with # or empty lines are thrown away.
  5. # Lines starting in the first column should have following format:
  6. #
  7. # keyword/descNL, i.e. everything after keyword/ until new line is desc
  8. #
  9. # keyword can be:
  10. #
  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)
  14. #
  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 ( ).
  19. #
  20. # type (file matches this if `file %f` matches regular expression desc
  21. # (the filename: part from `file %f` is removed))
  22. #
  23. # directory (matches any directory matching regular expression desc)
  24. #
  25. # include (matches an include directive)
  26. #
  27. # default (matches any file no matter what desc is)
  28. #
  29. # Other lines should start with a space or tab and should be in the format:
  30. #
  31. # keyword=commandNL (with no spaces around =), where keyword should be:
  32. #
  33. # Open (if the user presses Enter or doubleclicks it),
  34. #
  35. # View (F3), Edit (F4)
  36. #
  37. # Include is the keyword used to add any further entries from an include/
  38. # section
  39. #
  40. # command is any one-line shell command, with the following substitutions:
  41. #
  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, mcfs 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)
  56. #
  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.)
  59. #
  60. #
  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.
  63. #
  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.
  71. #
  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.
  76. #
  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.
  82. #
  83. # Any new entries you develop for you are always welcome if they are
  84. # useful on more than one system. You can send your modifications
  85. # by e-mail to mc-devel@gnome.org
  86. ### Changes ###
  87. #
  88. # Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
  89. ### TODO ###
  90. #
  91. # Postscript Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
  92. # Images asciiview
  93. #
  94. # All X Apps [Nothing/Warning] if no DISPLAY
  95. # Not found [Default/Warning]
  96. # Empty Output [Default/Warning]
  97. # Edit: CopyOut+EDIT+CopyIn
  98. # Security Check gzip/bzip EDIT (mktemp)
  99. #
  100. # Maybe: Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
  101. ### Archives ###
  102. # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
  103. regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
  104. Open=%cd %p#utar
  105. View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
  106. regex/\.tar\.bz$
  107. # Open=%cd %p#utar
  108. View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
  109. regex/\.t(ar\.bz2|bz|b2)$
  110. Open=%cd %p#utar
  111. View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
  112. # .tar.lzma, .tlz
  113. regex/\.t(ar\.lzma|lz)$
  114. Open=%cd %p#utar
  115. View=%view{ascii} lzma -dc %f 2>/dev/null | tar tvvf -
  116. # .tar.F - used in QNX
  117. regex/\.tar\.F$
  118. # Open=%cd %p#utar
  119. View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
  120. # .qpr/.qpk - QNX Neutrino package installer files
  121. regex/\.(qp[rk])$
  122. Open=%cd %p#utar
  123. View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
  124. # tar
  125. regex/\.(tar|TAR)$
  126. Open=%cd %p#utar
  127. View=%view{ascii} tar tvvf %f
  128. # lha
  129. type/^LHa\ .*archive
  130. Open=%cd %p#ulha
  131. View=%view{ascii} lha l %f
  132. # arj
  133. regex/\.a(rj|[0-9][0-9])$
  134. Open=%cd %p#uarj
  135. View=%view{ascii} unarj l %f
  136. # ha
  137. regex/\.([Hh][Aa])$
  138. Open=%cd %p#uha
  139. View=%view{ascii} ha lf %f
  140. # rar
  141. regex/\.[rR]([aA][rR]|[0-9][0-9])$
  142. Open=%cd %p#urar
  143. View=%view{ascii} rar v -c- %f
  144. # ALZip
  145. regex/\.(alz|ALZ)$
  146. Open=%cd %p#ualz
  147. View=%view{ascii} unalz -l %f
  148. # cpio
  149. shell/.cpio.Z
  150. Open=%cd %p#ucpio
  151. View=%view{ascii} gzip -dc %f | cpio -itv 2>/dev/null
  152. shell/.cpio.gz
  153. Open=%cd %p#ucpio
  154. View=%view{ascii} gzip -dc %f | cpio -itv 2>/dev/null
  155. shell/.cpio
  156. Open=%cd %p#ucpio
  157. View=%view{ascii} cpio -itv < %f 2>/dev/null
  158. # ls-lR
  159. regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
  160. Open=%cd %p#lslR
  161. # patch
  162. regex/\.(diff|patch)(\.bz2)$
  163. Open=%cd %p#patchfs
  164. View=%view{ascii} bzip2 -dc %f 2>/dev/null
  165. regex/\.(diff|patch)(\.(gz|Z))$
  166. Open=%cd %p#patchfs
  167. View=%view{ascii} gzip -dc %f 2>/dev/null
  168. regex/\.(diff|patch)$
  169. Open=%cd %p#patchfs
  170. View=%view{ascii} /bin/cat %f 2>/dev/null
  171. # ar library
  172. regex/\.s?a$
  173. Open=%cd %p#uar
  174. #Open=%view{ascii} ar tv %f
  175. View=%view{ascii} file %f && nm %f
  176. # trpm
  177. regex/\.trpm$
  178. Open=%cd %p#trpm
  179. View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
  180. # RPM packages (SuSE uses *.spm for source packages)
  181. regex/\.(rpm|spm)$
  182. Open=%cd %p#rpm
  183. View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
  184. # deb
  185. regex/\.u?deb$
  186. Open=%cd %p#deb
  187. View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
  188. # ISO9660
  189. regex/\.iso$
  190. Open=%cd %p#iso9660
  191. View=%view{ascii} isoinfo -l -i %f
  192. # 7zip archives (they are not man pages)
  193. regex/\.(7z|7Z)$
  194. Open=%cd %p#u7z
  195. View=%view{ascii} 7za l %f 2>/dev/null
  196. # Mailboxes
  197. type/^ASCII\ mail\ text
  198. Open=%cd %p#mailfs
  199. ### Sources ###
  200. # C
  201. shell/.c
  202. Open=%var{EDITOR:vi} %f
  203. # Fortran
  204. shell/.f
  205. Open=%var{EDITOR:vi} %f
  206. # Header
  207. regex/\.(h|hpp)$
  208. Open=%var{EDITOR:vi} %f
  209. # Object
  210. type/^ELF
  211. #Open=%var{PAGER:more} %f
  212. View=%view{ascii} file %f && nm %f
  213. # Asm
  214. shell/.s
  215. Open=%var{EDITOR:vi} %f
  216. # C++
  217. regex/\.(C|cc|cpp)$
  218. Open=%var{EDITOR:vi} %f
  219. ### Documentation ###
  220. # Texinfo
  221. regex/\.(te?xi|texinfo)$
  222. # GNU Info page
  223. type/^Info\ text
  224. Open=info -f %f
  225. shell/.info
  226. Open=info -f %f
  227. # Manual page
  228. # Exception - .so libraries are not manual pages
  229. regex/\.(so|so\.[0-9\.]*)$
  230. View=%view{ascii} file %f && nm %f
  231. regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
  232. Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac | %var{PAGER:more}
  233. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac
  234. # Perl pod page
  235. shell/.pod
  236. Open=pod2man %f | nroff @MAN_FLAGS@ @MANDOC@ | %var{PAGER:more}
  237. View=%view{ascii,nroff} pod2man %f | nroff @MAN_FLAGS@ @MANDOC@
  238. # Troff with me macros.
  239. # Exception - "read.me" is not a nroff file.
  240. shell/read.me
  241. Open=
  242. View=
  243. shell/.me
  244. Open=nroff @MAN_FLAGS@ -me %f | %var{PAGER:more}
  245. View=%view{ascii,nroff} nroff @MAN_FLAGS@ -me %f
  246. # Troff with ms macros.
  247. shell/.ms
  248. Open=nroff @MAN_FLAGS@ -ms %f | %var{PAGER:more}
  249. View=%view{ascii,nroff} nroff @MAN_FLAGS@ -ms %f
  250. # Manual page - compressed
  251. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
  252. Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
  253. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
  254. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
  255. Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
  256. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
  257. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
  258. Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
  259. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
  260. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
  261. Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
  262. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
  263. ### Images ###
  264. type/^GIF
  265. Include=image
  266. type/^JPEG
  267. Include=image
  268. type/^PC\ bitmap
  269. Include=image
  270. type/^PNG
  271. Include=image
  272. type/^TIFF
  273. Include=image
  274. type/^PBM
  275. Include=image
  276. type/^PGM
  277. Include=image
  278. type/^PPM
  279. Include=image
  280. type/^Netpbm
  281. Include=image
  282. shell/.xcf
  283. Open=(gimp %f &)
  284. shell/.xbm
  285. Open=bitmap %f
  286. shell/.xpm
  287. Include=image
  288. View=sxpm %f
  289. include/image
  290. Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
  291. View=%view{ascii} identify %f
  292. #View=%view{ascii} asciiview %f
  293. ### Sound files ###
  294. regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
  295. Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
  296. regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
  297. Open=mikmod %f
  298. #Open=tracker %f
  299. regex/\.([wW][aA][wW]22)$
  300. Open=vplay -s 22 %f
  301. regex/\.([mM][pP]3)$
  302. Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
  303. View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
  304. regex/\.([oO][gG][gG])$
  305. Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
  306. View=%view{ascii} ogginfo %s
  307. regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
  308. Open=timidity %f
  309. regex/\.([wW][mM][aA])$
  310. Open=mplayer -vo null %f
  311. View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
  312. ### Play lists ###
  313. regex/\.([mM]3[uU]|[pP][lL][sS])$
  314. Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
  315. ### Video ###
  316. regex/\.([aA][vV][iI])$
  317. Include=video
  318. regex/\.([aA][sS][fFxX])$
  319. Include=video
  320. regex/\.([dD][iI][vV][xX])$
  321. Include=video
  322. regex/\.([mM][oO][vV]|[qQ][tT])$
  323. Include=video
  324. regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
  325. Include=video
  326. regex/\.([vV][oO][bB])$
  327. Include=video
  328. regex/\.([wW][mM][vV])$
  329. Include=video
  330. regex/\.([fF][lL][iIcCvV])$
  331. Include=video
  332. regex/\.([oO][gG][mM])$
  333. Include=video
  334. regex/\.([rR][aA]?[mM])$
  335. Open=(realplay %f >/dev/null 2>&1 &)
  336. include/video
  337. Open=(mplayer %f >/dev/null 2>&1 &)
  338. #Open=(gtv %f >/dev/null 2>&1 &)
  339. #Open=(xanim %f >/dev/null 2>&1 &)
  340. ### Documents ###
  341. # Postscript
  342. type/^PostScript
  343. Open=(gv %f &)
  344. View=%view{ascii} ps2ascii %f
  345. # PDF
  346. type/^PDF
  347. Open=(xpdf %f &)
  348. #Open=(acroread %f &)
  349. #Open=(ghostview %f &)
  350. View=%view{ascii} pdftotext %f -
  351. # The following code very ugly and should not be taken as example.
  352. # It should be cleaned up when the new format of mc.ext is developed.
  353. # html
  354. regex/\.([hH][tT][mM][lL]?)$
  355. 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
  356. View=%view{ascii} lynx -dump -force_html %f
  357. # StarOffice 5.2
  358. shell/.sdw
  359. Open=(ooffice %f &)
  360. # StarOffice 6 and OpenOffice.org formats
  361. regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
  362. Open=(ooffice %f &)
  363. View=%view{ascii} odt2txt %f
  364. # AbiWord
  365. shell/.abw
  366. Open=(abiword %f &)
  367. # Microsoft Word Document
  368. regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
  369. Open=(abiword %f >/dev/null 2>&1 &)
  370. View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
  371. type/^Microsoft\ Word
  372. Open=(abiword %f >/dev/null 2>&1 &)
  373. View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
  374. # RTF document
  375. regex/\.([rR][tT][fF])$
  376. Open=(abiword %f >/dev/null 2>&1 &)
  377. # Microsoft Excel Worksheet
  378. regex/\.([xX][lL][sSwW])$
  379. Open=(gnumeric %f >/dev/null 2>&1 &)
  380. View=%view{ascii} xls2csv %f || strings %f
  381. type/^Microsoft\ Excel
  382. Open=(gnumeric %f >/dev/null 2>&1 &)
  383. View=%view{ascii} xls2csv %f || strings %f
  384. # Use OpenOffice.org to open any MS Office documents
  385. type/^Microsoft\ Office\ Document
  386. Open=(ooffice %f &)
  387. # Framemaker
  388. type/^FrameMaker
  389. Open=fmclient -f %f
  390. # DVI
  391. regex/\.([dD][vV][iI])$
  392. Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
  393. View=%view{ascii} dvi2tty %f
  394. # TeX
  395. regex/\.([Tt][Ee][Xx])$
  396. Open=%var{EDITOR:vi} %f
  397. ### Miscellaneous ###
  398. # Makefile
  399. regex/[Mm]akefile$
  400. Open=make -f %f %{Enter parameters}
  401. # Imakefile
  402. shell/Imakefile
  403. Open=xmkmf -a
  404. # Makefile.PL (MakeMaker)
  405. regex/^Makefile.(PL|pl)$
  406. Open=%var{PERL:perl} %f
  407. # dbf
  408. regex/\.([dD][bB][fF])$
  409. Open=%view{ascii} dbview %f
  410. View=%view{ascii} dbview -b %f
  411. # REXX script
  412. regex/\.(rexx?|cmd)$
  413. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  414. # Disk images for Commodore computers (VIC20, C64, C128)
  415. regex/\.(d64|D64)$
  416. Open=%cd %p#uc1541
  417. View=%view{ascii} c1541 %f -list
  418. Extract=c1541 %f -extract
  419. # Glade, a user interface designer for GTK+ and GNOME
  420. regex/\.([Gg][Ll][Aa][Dd][Ee])$
  421. 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
  422. ### Plain compressed files ###
  423. # ace
  424. regex/\.(ace|ACE)$
  425. Open=%cd %p#uace
  426. View=%view{ascii} unace l %f
  427. Extract=unace x %f
  428. # arc
  429. regex/\.(arc|ARC)$
  430. Open=%cd %p#uarc
  431. View=%view{ascii} arc l %f
  432. Extract=arc x %f '*'
  433. Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
  434. # zip
  435. type/^([Zz][Ii][Pp])\ archive
  436. Open=%cd %p#uzip
  437. View=%view{ascii} unzip -v %f
  438. # zoo
  439. regex/\.([Zz][Oo][Oo])$
  440. Open=%cd %p#uzoo
  441. View=%view{ascii} zoo l %f
  442. # gzip
  443. type/^gzip
  444. Open=gzip -dc %f | %var{PAGER:more}
  445. View=%view{ascii} gzip -dc %f 2>/dev/null
  446. regex/\.(gz|Z)?$
  447. View=%view{ascii} gzip -dc %f 2>/dev/null
  448. # bzip2
  449. type/^bzip2
  450. Open=bzip2 -dc %f | %var{PAGER:more}
  451. View=%view{ascii} bzip2 -dc %f 2>/dev/null
  452. regex/\.bz2?$
  453. View=%view{ascii} bzip2 -dc %f 2>/dev/null
  454. # bzip
  455. type/^bzip
  456. Open=bzip -dc %f | %var{PAGER:more}
  457. View=%view{ascii} bzip -dc %f 2>/dev/null
  458. # compress
  459. type/^compress
  460. Open=gzip -dc %f | %var{PAGER:more}
  461. View=%view{ascii} gzip -dc %f 2>/dev/null
  462. # lzma
  463. regex/\.lzma$
  464. Open=lzma -dc %f | %var{PAGER:more}
  465. View=%view{ascii} lzma -dc %f 2>/dev/null
  466. ### Default ###
  467. # Default target for anything not described above
  468. default/*
  469. Open=
  470. View=
  471. ### EOF ###