mc.ext.in 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  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. # Also provided to external application as MC_EXT_BASENAME
  45. # global variable
  46. # %f -> name of the current file. Unlike %p, if file is located on a
  47. # non-local virtual filesystem, i.e. either tarfs or ftpfs,
  48. # then the file will be temporarily copied into a local directory
  49. # and %f will be the full path to this local temporal file.
  50. # If you don't want to get a local copy and want to get the
  51. # virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
  52. # use %d/%p instead of %f.
  53. # Also provided to external application as MC_EXT_FILENAME
  54. # global variable
  55. # %d -> name of the current directory (pwd, without trailing slash)
  56. # Also provided to external application as MC_EXT_CURRENTDIR
  57. # global variable
  58. # %s -> "selected files", i.e. space separated list of tagged files if any
  59. # or name of the current file.
  60. # Also provided to external application as MC_EXT_SELECTED
  61. # global variable
  62. # %t -> list of tagged files
  63. # Also provided to external application as MC_EXT_ONLYTAGGED
  64. # global variable
  65. # %u -> list of tagged files (they'll be untaged after the command)
  66. #
  67. # (If these 6 letters are in uppercase, they refer to the other panel.
  68. # But you shouldn't have to use it in this file.)
  69. #
  70. #
  71. # %cd -> the rest is a path mc should change into (cd won't work, since it's
  72. # a child process). %cd handles even vfs names.
  73. #
  74. # %view -> the command you type will be piped into mc's internal file viewer
  75. # if you type only the %view and no command, viewer will load %f file
  76. # instead (i.e. no piping, so it is different to %view cat %f)
  77. # %view may be directly followed by {} with a list of any of
  78. # ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
  79. # text using backspace for bold and underscore) and unform
  80. # (no highlighting for nroff sequences) separated by commas.
  81. #
  82. # %var -> You use it like this: %var{VAR:default}. This macro will expand
  83. # to the value of the VAR variable in the environment if it's set
  84. # otherwise the value in default will be used. This is similar to
  85. # the Bourne shell ${VAR-default} construct.
  86. #
  87. # Rules are applied from top to bottom, thus the order is important.
  88. # If some actions are missing, search continues as if this target didn't
  89. # match (i.e. if a file matches the first and second entry and View action
  90. # is missing in the first one, then on pressing F3 the View action from
  91. # the second entry will be used. default should catch all the actions.
  92. #
  93. # Any new entries you develop for you are always welcome if they are
  94. # useful on more than one system. You can post your modifications
  95. # as tickets at www.midnight-commander.org
  96. ### Changes ###
  97. #
  98. # Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
  99. ### TODO ###
  100. #
  101. # Postscript Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
  102. # Images asciiview
  103. #
  104. # All X Apps [Nothing/Warning] if no DISPLAY
  105. # Not found [Default/Warning]
  106. # Empty Output [Default/Warning]
  107. # Edit: CopyOut+EDIT+CopyIn
  108. # Security Check gzip/bzip EDIT (mktemp)
  109. #
  110. # Maybe: Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
  111. ### GIT Repo ###
  112. # gitfs changeset
  113. regex/^\[git\]
  114. Open=%cd %p/changesetfs://
  115. View=%cd %p/patchsetfs://
  116. ### Archives ###
  117. # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
  118. regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk|\.gem$
  119. Open=%cd %p/utar://
  120. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
  121. regex/\.tar\.bz$
  122. # Open=%cd %p/utar://
  123. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip
  124. regex/\.t(ar\.bz2|bz2?|b2)$
  125. Open=%cd %p/utar://
  126. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2
  127. # .tar.lzma, .tlz
  128. regex/\.t(ar\.lzma|lz)$
  129. Open=%cd %p/utar://
  130. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma
  131. # .tar.xz, .txz
  132. regex/\.t(ar\.xz|xz)$
  133. Open=%cd %p/utar://
  134. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
  135. # .tar.F - used in QNX
  136. regex/\.tar\.F$
  137. # Open=%cd %p/utar://
  138. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
  139. # .qpr/.qpk - QNX Neutrino package installer files
  140. regex/\.(qp[rk])$
  141. Open=%cd %p/utar://
  142. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
  143. # tar
  144. regex/\.(tar|TAR)$
  145. Open=%cd %p/utar://
  146. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
  147. # lha
  148. type/^LHa\ .*archive
  149. Open=%cd %p/ulha://
  150. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
  151. # arj
  152. regex/\.a(rj|[0-9][0-9])$
  153. Open=%cd %p/uarj://
  154. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
  155. # cab
  156. regex/\.([cC][aA][bB])$
  157. Open=%cd %p/ucab://
  158. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
  159. # ha
  160. regex/\.([Hh][Aa])$
  161. Open=%cd %p/uha://
  162. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
  163. # rar
  164. regex/\.[rR]([aA][rR]|[0-9][0-9])$
  165. Open=%cd %p/urar://
  166. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
  167. # ALZip
  168. regex/\.(alz|ALZ)$
  169. Open=%cd %p/ualz://
  170. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
  171. # cpio
  172. shell/.cpio.Z
  173. Open=%cd %p/ucpio://
  174. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
  175. shell/.cpio.xz
  176. Open=%cd %p/ucpio://
  177. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
  178. shell/.cpio.gz
  179. Open=%cd %p/ucpio://
  180. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
  181. shell/.cpio
  182. Open=%cd %p/ucpio://
  183. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
  184. # 7zip archives (they are not man pages)
  185. regex/\.(7z|7Z)$
  186. Open=%cd %p/u7z://
  187. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
  188. # patch
  189. regex/\.(diff|patch)(\.bz2)$
  190. Open=%cd %p/patchfs://
  191. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  192. regex/\.(diff|patch)(\.(gz|Z))$
  193. Open=%cd %p/patchfs://
  194. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  195. # ls-lR
  196. regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
  197. Open=%cd %p/lslR://
  198. # trpm
  199. regex/\.trpm$
  200. Open=%cd %p/trpm://
  201. View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
  202. # RPM packages (SuSE uses *.spm for source packages)
  203. regex/\.(src\.rpm|spm)$
  204. Open=%cd %p/rpm://
  205. View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
  206. regex/\.rpm$
  207. Open=%cd %p/rpm://
  208. View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
  209. # deb
  210. regex/\.u?deb$
  211. Open=%cd %p/deb://
  212. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
  213. # dpkg
  214. shell/.debd
  215. Open=%cd %p/debd://
  216. View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
  217. # apt
  218. shell/.deba
  219. Open=%cd %p/deba://
  220. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
  221. # ISO9660
  222. regex/\.([iI][sS][oO])$
  223. Open=%cd %p/iso9660://
  224. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
  225. regex/\.(diff|patch)$
  226. Open=%cd %p/patchfs://
  227. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
  228. # ar library
  229. regex/\.s?a$
  230. Open=%cd %p/uar://
  231. #Open=%view{ascii} ar tv %f
  232. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
  233. # gplib
  234. regex/\.([Ll][Ii][Bb])$
  235. Open=%cd %p/ulib://
  236. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
  237. # Mailboxes
  238. type/^ASCII\ mail\ text
  239. Open=%cd %p/mailfs://
  240. ### Sources ###
  241. # C
  242. shell/.c
  243. Include=editor
  244. # Fortran
  245. shell/.f
  246. Include=editor
  247. # Header
  248. regex/\.(h|hpp)$
  249. Include=editor
  250. # Asm
  251. shell/.s
  252. Include=editor
  253. # C++
  254. regex/\.(C|cc|cpp)$
  255. Include=editor
  256. include/editor
  257. Open=%var{EDITOR:vi} %f
  258. # .so libraries
  259. regex/\.(so|so\.[0-9\.]*)$
  260. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
  261. # Object
  262. type/^ELF
  263. #Open=%var{PAGER:more} %f
  264. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
  265. ### Documentation ###
  266. # Texinfo
  267. #regex/\.(te?xi|texinfo)$
  268. # GNU Info page
  269. type/^Info\ text
  270. Open=@EXTHELPERSDIR@/text.sh open info
  271. shell/.info
  272. Open=@EXTHELPERSDIR@/text.sh open info
  273. # Exception: .3gp are video files not manual pages
  274. regex/\.(3[gG][pP])$
  275. Include=video
  276. # Manual page
  277. regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
  278. Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
  279. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
  280. # Perl pod page
  281. shell/.pod
  282. Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
  283. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
  284. # Troff with me macros.
  285. # Exception - "read.me" is not a nroff file.
  286. shell/read.me
  287. Open=
  288. View=
  289. shell/.me
  290. Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
  291. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
  292. # Troff with ms macros.
  293. shell/.ms
  294. Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
  295. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
  296. # Manual page - compressed
  297. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
  298. Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
  299. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
  300. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
  301. Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
  302. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
  303. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
  304. Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
  305. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
  306. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
  307. Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
  308. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
  309. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
  310. Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
  311. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
  312. # CHM
  313. regex/\.(chm|CHM)$
  314. Open=@EXTHELPERSDIR@/text.sh open chm
  315. ### Images ###
  316. type/^GIF
  317. Include=image
  318. type/^JPEG
  319. View=%view{ascii} @EXTHELPERSDIR@/image.sh view jpeg
  320. Include=image
  321. type/^PC\ bitmap
  322. Include=image
  323. type/^PNG
  324. Include=image
  325. type/^TIFF
  326. Include=image
  327. type/^PBM
  328. Include=image
  329. type/^PGM
  330. Include=image
  331. type/^PPM
  332. Include=image
  333. type/^Netpbm
  334. Include=image
  335. shell/.xcf
  336. Open=@EXTHELPERSDIR@/image.sh open xcf
  337. shell/.xbm
  338. Open=@EXTHELPERSDIR@/image.sh open xbm
  339. shell/.xpm
  340. Include=image
  341. View=@EXTHELPERSDIR@/image.sh view xpm %f
  342. shell/.ico
  343. Include=image
  344. include/image
  345. Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
  346. View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
  347. ### Sound files ###
  348. regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
  349. Open=@EXTHELPERSDIR@/sound.sh open common
  350. regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
  351. Open=@EXTHELPERSDIR@/sound.sh open mod
  352. regex/\.([wW][aA][wW]22)$
  353. Open=@EXTHELPERSDIR@/sound.sh open wav22
  354. regex/\.([mM][pP]3)$
  355. Open=@EXTHELPERSDIR@/sound.sh open mp3
  356. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
  357. regex/\.([oO][gG][gG|aA|vV|xX])$
  358. Open=@EXTHELPERSDIR@/sound.sh open ogg
  359. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
  360. regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
  361. Open=@EXTHELPERSDIR@/sound.sh open common
  362. regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
  363. Open=@EXTHELPERSDIR@/sound.sh open midi
  364. regex/\.([wW][mM][aA])$
  365. Open=@EXTHELPERSDIR@/sound.sh open wma
  366. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
  367. ### Play lists ###
  368. regex/\.([mM]3[uU]|[pP][lL][sS])$
  369. Open=@EXTHELPERSDIR@/sound.sh open playlist
  370. ### Video ###
  371. regex/\.([aA][vV][iI])$
  372. Include=video
  373. regex/\.([aA][sS][fFxX])$
  374. Include=video
  375. regex/\.([dD][iI][vV][xX])$
  376. Include=video
  377. regex/\.([mM][kK][vV])$
  378. Include=video
  379. regex/\.([mM][oO][vV]|[qQ][tT])$
  380. Include=video
  381. regex/\.([mM][pP]4|[mM]4[vV]|[mM][pP][eE]?[gG])$
  382. Include=video
  383. # MPEG-2 TS container + H.264 codec
  384. regex/\.([mM][tT][sS])$
  385. Include=video
  386. regex/\.([tT][sS])$
  387. Include=video
  388. regex/\.([vV][oO][bB])$
  389. Include=video
  390. regex/\.([wW][mM][vV])$
  391. Include=video
  392. regex/\.([fF][lL][iIcCvV])$
  393. Include=video
  394. regex/\.([oO][gG][mM])$
  395. Include=video
  396. regex/\.([rR][aA]?[mM])$
  397. Open=@EXTHELPERSDIR@/video.sh open ram
  398. # WebM
  399. regex/\.([wW][eE][bB][mM])$
  400. Include=video
  401. type/WebM
  402. Include=video
  403. include/video
  404. Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
  405. View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
  406. ### Documents ###
  407. # Postscript
  408. type/^PostScript
  409. Open=@EXTHELPERSDIR@/doc.sh open ps
  410. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
  411. # PDF
  412. type/^PDF
  413. Open=@EXTHELPERSDIR@/doc.sh open pdf
  414. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
  415. # html
  416. regex/\.([hH][tT][mM][lL]?)$
  417. Open=@EXTHELPERSDIR@/web.sh open html
  418. View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
  419. # StarOffice 5.2
  420. shell/.sdw
  421. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  422. # StarOffice 6 and OpenOffice.org formats
  423. regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
  424. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  425. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
  426. # AbiWord
  427. shell/.abw
  428. Open=@EXTHELPERSDIR@/doc.sh open abw
  429. # Microsoft Word Document
  430. regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
  431. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  432. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  433. type/^Microsoft\ Word
  434. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  435. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  436. # RTF document
  437. regex/\.([rR][tT][fF])$
  438. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  439. # Microsoft Excel Worksheet
  440. regex/\.([xX][lL][sSwW])$
  441. Open=@EXTHELPERSDIR@/doc.sh open msxls
  442. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  443. type/^Microsoft\ Excel
  444. Open=@EXTHELPERSDIR@/doc.sh open msxls
  445. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  446. # Use OpenOffice.org to open any MS Office documents
  447. type/^Microsoft\ Office\ Document
  448. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  449. # Framemaker
  450. type/^FrameMaker
  451. Open=@EXTHELPERSDIR@/doc.sh open framemaker
  452. # DVI
  453. regex/\.([dD][vV][iI])$
  454. Open=@EXTHELPERSDIR@/doc.sh open dvi
  455. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
  456. # TeX
  457. regex/\.([Tt][Ee][Xx])$
  458. Include=editor
  459. # DjVu
  460. regex/\.(djvu?|DJVU?)$
  461. Open=@EXTHELPERSDIR@/doc.sh open djvu
  462. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
  463. ### Miscellaneous ###
  464. # Makefile
  465. regex/[Mm]akefile$
  466. Open=make -f %f %{Enter parameters}
  467. # Imakefile
  468. shell/Imakefile
  469. Open=@EXTHELPERSDIR@/misc.sh open imakefile
  470. # Makefile.PL (MakeMaker)
  471. regex/^Makefile.(PL|pl)$
  472. Open=%var{PERL:perl} %f
  473. # dbf
  474. regex/\.([dD][bB][fF])$
  475. Open=%view{ascii} @EXTHELPERSDIR@/misc.sh open dbf
  476. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
  477. # REXX script
  478. regex/\.(rexx?|cmd)$
  479. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  480. # Disk images for Commodore computers (VIC20, C64, C128)
  481. regex/\.(d64|D64)$
  482. Open=%cd %p/uc1541://
  483. View=%view{ascii} c1541 %f -list
  484. Extract=c1541 %f -extract
  485. # Glade, a user interface designer for GTK+ and GNOME
  486. regex/\.([Gg][Ll][Aa][Dd][Ee])$
  487. Open=@EXTHELPERSDIR@/misc.sh open glade
  488. # Gettext Catalogs
  489. shell/.mo
  490. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
  491. # lyx
  492. regex/\.(lyx|LYX)$
  493. Open=@EXTHELPERSDIR@/misc.sh open lyx
  494. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
  495. # torrent
  496. regex/\.([tT][oO][rR][rR][eE][nN][tT])$
  497. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
  498. ### Plain compressed files ###
  499. # ace
  500. regex/\.(ace|ACE)$
  501. Open=%cd %p/uace://
  502. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
  503. Extract=unace x %f
  504. # arc
  505. regex/\.(arc|ARC)$
  506. Open=%cd %p/uarc://
  507. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
  508. Extract=arc x %f '*'
  509. Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
  510. # zip
  511. type/^([Zz][Ii][Pp])\ archive
  512. Open=%cd %p/uzip://
  513. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  514. # zoo
  515. regex/\.([Zz][Oo][Oo])$
  516. Open=%cd %p/uzoo://
  517. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
  518. # gzip
  519. type/^gzip
  520. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  521. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  522. regex/\.(gz|Z)$
  523. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  524. # bzip2
  525. type/^bzip2
  526. Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
  527. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  528. regex/\.bz2?$
  529. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  530. # bzip
  531. type/^bzip
  532. Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
  533. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
  534. # compress
  535. type/^compress
  536. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  537. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  538. # lzma
  539. regex/\.lzma$
  540. Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
  541. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
  542. # xz
  543. regex/\.xz$
  544. Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
  545. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  546. ### Default ###
  547. # Default target for anything not described above
  548. default/*
  549. Open=
  550. View=
  551. ### EOF ###