mc.ext.in 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  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. # shell/i (desc is, when starting with a dot, any extension (no wildcars),
  16. # The same as shell but with case insensitive.
  17. #
  18. # regex (desc is an extended regular expression)
  19. # Please note that we are using the GNU regex library and thus
  20. # \| matches the literal | and | has special meaning (or) and
  21. # () have special meaning and \( \) stand for literal ( ).
  22. #
  23. # regex/i (desc is an extended regular expression)
  24. # The same as regex but with case insensitive.
  25. #
  26. # type (file matches this if `file %f` matches regular expression desc
  27. # (the filename: part from `file %f` is removed))
  28. #
  29. # type/i (file matches this if `file %f` matches regular expression desc)
  30. # The same as type but with case insensitive.
  31. #
  32. # directory (matches any directory matching regular expression desc)
  33. #
  34. # include (matches an include directive)
  35. #
  36. # default (matches any file no matter what desc is)
  37. #
  38. # Other lines should start with a space or tab and should be in the format:
  39. #
  40. # keyword=commandNL (with no spaces around =), where keyword should be:
  41. #
  42. # Open (if the user presses Enter or doubleclicks it),
  43. #
  44. # View (F3), Edit (F4)
  45. #
  46. # Include is the keyword used to add any further entries from an include/
  47. # section
  48. #
  49. # command is any one-line shell command, with the following substitutions:
  50. #
  51. # %% -> % character
  52. # %p -> name of the current file (without path, but pwd is its path).
  53. # Also provided to external application as MC_EXT_BASENAME
  54. # global variable
  55. # %f -> name of the current file. Unlike %p, if file is located on a
  56. # non-local virtual filesystem, i.e. either tarfs or ftpfs,
  57. # then the file will be temporarily copied into a local directory
  58. # and %f will be the full path to this local temporal file.
  59. # If you don't want to get a local copy and want to get the
  60. # virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
  61. # use %d/%p instead of %f.
  62. # Also provided to external application as MC_EXT_FILENAME
  63. # global variable
  64. # %d -> name of the current directory (pwd, without trailing slash)
  65. # Also provided to external application as MC_EXT_CURRENTDIR
  66. # global variable
  67. # %s -> "selected files", i.e. space separated list of tagged files if any
  68. # or name of the current file.
  69. # Also provided to external application as MC_EXT_SELECTED
  70. # global variable
  71. # %t -> list of tagged files
  72. # Also provided to external application as MC_EXT_ONLYTAGGED
  73. # global variable
  74. # %u -> list of tagged files (they'll be untaged after the command)
  75. #
  76. # (If these 6 letters are in uppercase, they refer to the other panel.
  77. # But you shouldn't have to use it in this file.)
  78. #
  79. #
  80. # %cd -> the rest is a path mc should change into (cd won't work, since it's
  81. # a child process). %cd handles even vfs names.
  82. #
  83. # %view -> the command you type will be piped into mc's internal file viewer
  84. # if you type only the %view and no command, viewer will load %f file
  85. # instead (i.e. no piping, so it is different to %view cat %f)
  86. # %view may be directly followed by {} with a list of any of
  87. # ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
  88. # text using backspace for bold and underscore) and unform
  89. # (no highlighting for nroff sequences) separated by commas.
  90. #
  91. # %var -> You use it like this: %var{VAR:default}. This macro will expand
  92. # to the value of the VAR variable in the environment if it's set
  93. # otherwise the value in default will be used. This is similar to
  94. # the Bourne shell ${VAR-default} construct.
  95. #
  96. # Rules are applied from top to bottom, thus the order is important.
  97. # If some actions are missing, search continues as if this target didn't
  98. # match (i.e. if a file matches the first and second entry and View action
  99. # is missing in the first one, then on pressing F3 the View action from
  100. # the second entry will be used. default should catch all the actions.
  101. #
  102. # Any new entries you develop for you are always welcome if they are
  103. # useful on more than one system. You can post your modifications
  104. # as tickets at www.midnight-commander.org
  105. ### Changes ###
  106. #
  107. # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com>
  108. ### GIT Repo ###
  109. # gitfs changeset
  110. regex/^\[git\]
  111. Open=%cd %p/changesetfs://
  112. View=%cd %p/patchsetfs://
  113. ### Archives ###
  114. # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk, .gem
  115. regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$|\.gem$
  116. Open=%cd %p/utar://
  117. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
  118. shell/.tar.bz
  119. # Open=%cd %p/utar://
  120. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip
  121. regex/\.t(ar\.bz2|bz2?|b2)$
  122. Open=%cd %p/utar://
  123. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2
  124. # .tar.lzma, .tlz
  125. regex/\.t(ar\.lzma|lz)$
  126. Open=%cd %p/utar://
  127. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma
  128. # .tar.lz
  129. shell/.tar.lz
  130. Open=%cd %p/utar://
  131. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz
  132. # .tar.lz4, .tlz4
  133. regex/\.t(ar\.lz4|lz4)$
  134. Open=%cd %p/utar://
  135. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz4
  136. # .tar.xz, .txz
  137. regex/\.t(ar\.xz|xz)$
  138. Open=%cd %p/utar://
  139. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
  140. # .tar.F - used in QNX
  141. shell/.tar.F
  142. # Open=%cd %p/utar://
  143. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
  144. # .qpr/.qpk - QNX Neutrino package installer files
  145. regex/\.qp[rk]$
  146. Open=%cd %p/utar://
  147. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
  148. # tar
  149. shell/i/.tar
  150. Open=%cd %p/utar://
  151. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
  152. # lha
  153. type/^LHa\ .*archive
  154. Open=%cd %p/ulha://
  155. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
  156. # arj
  157. regex/i/\.a(rj|[0-9][0-9])$
  158. Open=%cd %p/uarj://
  159. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
  160. # cab
  161. shell/i/.cab
  162. Open=%cd %p/ucab://
  163. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
  164. # ha
  165. shell/i/.ha
  166. Open=%cd %p/uha://
  167. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
  168. # rar
  169. regex/i/\.r(ar|[0-9][0-9])$
  170. Open=%cd %p/urar://
  171. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
  172. # ALZip
  173. shell/i/.alz
  174. Open=%cd %p/ualz://
  175. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
  176. # cpio
  177. shell/.cpio.Z
  178. Open=%cd %p/ucpio://
  179. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
  180. shell/.cpio.lz
  181. Open=%cd %p/ucpio://
  182. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz
  183. shell/.cpio.lz4
  184. Open=%cd %p/ucpio://
  185. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz4
  186. shell/.cpio.xz
  187. Open=%cd %p/ucpio://
  188. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
  189. shell/.cpio.gz
  190. Open=%cd %p/ucpio://
  191. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
  192. shell/i/.cpio
  193. Open=%cd %p/ucpio://
  194. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
  195. # initrd
  196. regex/^(initramfs.*\.img|initrd\.img(-.+)?)$
  197. Open=%cd %p/ucpio://
  198. # 7zip archives (they are not man pages)
  199. shell/i/.7z
  200. Open=%cd %p/u7z://
  201. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
  202. # patch
  203. regex/\.(diff|patch)(\.bz2)$
  204. Open=%cd %p/patchfs://
  205. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  206. regex/\.(diff|patch)(\.(gz|Z))$
  207. Open=%cd %p/patchfs://
  208. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  209. regex/\.(diff|patch)(\.xz)$
  210. Open=%cd %p/patchfs://
  211. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  212. # ls-lR
  213. regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
  214. Open=%cd %p/lslR://
  215. # trpm
  216. shell/.trpm
  217. Open=%cd %p/trpm://
  218. View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
  219. # RPM packages (SuSE uses *.spm for source packages)
  220. regex/\.(src\.rpm|spm)$
  221. Open=%cd %p/rpm://
  222. View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
  223. shell/.rpm
  224. Open=%cd %p/rpm://
  225. View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
  226. # deb
  227. regex/\.u?deb$
  228. Open=%cd %p/deb://
  229. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
  230. # dpkg
  231. shell/.debd
  232. Open=%cd %p/debd://
  233. View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
  234. # apt
  235. shell/.deba
  236. Open=%cd %p/deba://
  237. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
  238. # ISO9660
  239. shell/i/.iso
  240. Open=%cd %p/iso9660://
  241. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
  242. regex/\.(diff|patch)$
  243. Open=%cd %p/patchfs://
  244. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
  245. # ar library
  246. regex/\.s?a$
  247. Open=%cd %p/uar://
  248. #Open=%view{ascii} ar tv %f
  249. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
  250. # gplib
  251. shell/i/.lib
  252. Open=%cd %p/ulib://
  253. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
  254. # Mailboxes
  255. type/^ASCII\ mail\ text
  256. Open=%cd %p/mailfs://
  257. ### Sources ###
  258. # C/C++
  259. regex/i/\.(c|cc|cpp)$
  260. Include=editor
  261. # C/C++ header
  262. regex/i/\.(h|hh|hpp)$
  263. Include=editor
  264. # Fortran
  265. shell/i/.f
  266. Include=editor
  267. # Assembler
  268. regex/i/\.(s|asm)$
  269. Include=editor
  270. include/editor
  271. Open=%var{EDITOR:vi} %f
  272. # .so libraries
  273. regex/\.(so|so\.[0-9\.]*)$
  274. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
  275. # Object
  276. type/^ELF
  277. #Open=%var{PAGER:more} %f
  278. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
  279. ### Documentation ###
  280. # Texinfo
  281. #regex/\.(te?xi|texinfo)$
  282. # GNU Info page
  283. type/^Info\ text
  284. Open=@EXTHELPERSDIR@/text.sh open info
  285. shell/.info
  286. Open=@EXTHELPERSDIR@/text.sh open info
  287. # Exception: .3gp are video files not manual pages
  288. shell/i/.3gp
  289. Include=video
  290. # Manual page
  291. regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
  292. Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
  293. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
  294. # Perl pod page
  295. shell/.pod
  296. Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
  297. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
  298. # Troff with me macros.
  299. # Exception - "read.me" is not a nroff file.
  300. shell/read.me
  301. Open=
  302. View=
  303. shell/.me
  304. Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
  305. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
  306. # Troff with ms macros.
  307. shell/.ms
  308. Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
  309. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
  310. # Manual page - compressed
  311. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
  312. Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
  313. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
  314. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
  315. Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
  316. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
  317. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
  318. Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
  319. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
  320. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz$
  321. Open=@EXTHELPERSDIR@/text.sh open man.lz %var{PAGER:more}
  322. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz %var{PAGER:more}
  323. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz4$
  324. Open=@EXTHELPERSDIR@/text.sh open man.lz4 %var{PAGER:more}
  325. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz4 %var{PAGER:more}
  326. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
  327. Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
  328. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
  329. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
  330. Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
  331. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
  332. # CHM
  333. shell/i/.chm
  334. Open=@EXTHELPERSDIR@/text.sh open chm
  335. ### Images ###
  336. type/^GIF
  337. Include=image
  338. type/^JPEG
  339. View=%view{ascii} @EXTHELPERSDIR@/image.sh view jpeg
  340. Include=image
  341. type/^PC\ bitmap
  342. Include=image
  343. type/^PNG
  344. Include=image
  345. type/^JNG
  346. Include=image
  347. type/^MNG
  348. Include=image
  349. type/^TIFF
  350. Include=image
  351. type/^PBM
  352. Include=image
  353. type/^PGM
  354. Include=image
  355. type/^PPM
  356. Include=image
  357. type/^Netpbm
  358. Include=image
  359. shell/.xcf
  360. Open=@EXTHELPERSDIR@/image.sh open xcf
  361. shell/.xbm
  362. Open=@EXTHELPERSDIR@/image.sh open xbm
  363. shell/.xpm
  364. Include=image
  365. View=@EXTHELPERSDIR@/image.sh view xpm %f
  366. shell/.ico
  367. Include=image
  368. shell/i/.svg
  369. View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
  370. Open=@EXTHELPERSDIR@/image.sh open svg
  371. include/image
  372. Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
  373. View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
  374. ### Sound files ###
  375. regex/i/\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv)$
  376. Open=@EXTHELPERSDIR@/sound.sh open common
  377. regex/i/\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
  378. Open=@EXTHELPERSDIR@/sound.sh open mod
  379. shell/i/.waw22
  380. Open=@EXTHELPERSDIR@/sound.sh open wav22
  381. shell/i/.mp3
  382. Open=@EXTHELPERSDIR@/sound.sh open mp3
  383. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
  384. regex/i/\.og[gax]$
  385. Open=@EXTHELPERSDIR@/sound.sh open ogg
  386. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
  387. regex/i/\.(spx|flac)$
  388. Open=@EXTHELPERSDIR@/sound.sh open common
  389. regex/i/\.(midi?|rmid?)$
  390. Open=@EXTHELPERSDIR@/sound.sh open midi
  391. shell/i/.wma
  392. Open=@EXTHELPERSDIR@/sound.sh open wma
  393. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
  394. ### Play lists ###
  395. regex/i/\.(m3u|pls)$
  396. Open=@EXTHELPERSDIR@/sound.sh open playlist
  397. ### Video ###
  398. shell/i/.avi
  399. Include=video
  400. regex/i/\.as[fx]$
  401. Include=video
  402. shell/i/.divx
  403. Include=video
  404. shell/i/.mkv
  405. Include=video
  406. regex/i/\.(mov|qt)$
  407. Include=video
  408. regex/i/\.(mp4|m4v|mpe?g)$
  409. Include=video
  410. # MPEG-2 TS container + H.264 codec
  411. shell/i/.mts
  412. Include=video
  413. shell/i/.ts
  414. Include=video
  415. shell/i/.vob
  416. Include=video
  417. shell/i/.wmv
  418. Include=video
  419. regex/i/\.fl[icv]$
  420. Include=video
  421. shell/i/.ogv
  422. Include=video
  423. regex/i/\.ra?m$
  424. Open=@EXTHELPERSDIR@/video.sh open ram
  425. # WebM
  426. shell/i/.webm
  427. Include=video
  428. type/WebM
  429. Include=video
  430. include/video
  431. Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
  432. View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
  433. ### Documents ###
  434. # Postscript
  435. type/^PostScript
  436. Open=@EXTHELPERSDIR@/doc.sh open ps
  437. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
  438. # PDF
  439. type/^PDF
  440. Open=@EXTHELPERSDIR@/doc.sh open pdf
  441. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
  442. # html
  443. regex/i/\.html?$
  444. Open=@EXTHELPERSDIR@/web.sh open html
  445. View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
  446. # StarOffice 5.2
  447. shell/.sdw
  448. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  449. # StarOffice 6 and OpenOffice.org formats
  450. regex/i/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
  451. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  452. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
  453. # AbiWord
  454. shell/.abw
  455. Open=@EXTHELPERSDIR@/doc.sh open abw
  456. # Gnumeric
  457. shell/i/.gnumeric
  458. Open=@EXTHELPERSDIR@/doc.sh open gnumeric
  459. # Microsoft Word Document
  460. regex/i/\.(do[ct]|wri)$
  461. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  462. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  463. type/^Microsoft\ Word
  464. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  465. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  466. # RTF document
  467. shell/i/.rtf
  468. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  469. # Microsoft Excel Worksheet
  470. regex/i/\.xl[sw]$
  471. Open=@EXTHELPERSDIR@/doc.sh open msxls
  472. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  473. type/^Microsoft\ Excel
  474. Open=@EXTHELPERSDIR@/doc.sh open msxls
  475. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  476. regex/i/\.(ppt|pps)$
  477. Open=@EXTHELPERSDIR@/doc.sh open msppt
  478. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt
  479. # Use OpenOffice.org to open any MS Office documents
  480. type/^Microsoft\ Office\ Document
  481. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  482. # Framemaker
  483. type/^FrameMaker
  484. Open=@EXTHELPERSDIR@/doc.sh open framemaker
  485. # DVI
  486. shell/i/.dvi
  487. Open=@EXTHELPERSDIR@/doc.sh open dvi
  488. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
  489. # TeX
  490. shell/i/.tex
  491. Include=editor
  492. # DjVu
  493. regex/i/\.djvu?$
  494. Open=@EXTHELPERSDIR@/doc.sh open djvu
  495. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
  496. # Comic Books
  497. regex/i/\.cb[zr]$
  498. Open=@EXTHELPERSDIR@/doc.sh open comic
  499. # Epub & mobi
  500. regex/i/\.(epub|mobi)$
  501. Open=@EXTHELPERSDIR@/doc.sh open epub
  502. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view epub
  503. ### Miscellaneous ###
  504. # Compiled Java classes
  505. shell/.class
  506. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass
  507. # Makefile
  508. regex/^[Mm]akefile$
  509. Open=make -f %f %{Enter parameters}
  510. # Imakefile
  511. shell/Imakefile
  512. Open=xmkmf -a
  513. # Makefile.PL (MakeMaker)
  514. regex/^Makefile\.(PL|pl)$
  515. Open=%var{PERL:perl} %f
  516. # sqlite3.db
  517. type/^SQLite 3.x database
  518. Open=@EXTHELPERSDIR@/misc.sh open sqlite
  519. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
  520. # dbf
  521. shell/i/.dbf
  522. Open=@EXTHELPERSDIR@/misc.sh open dbf
  523. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
  524. # REXX script
  525. regex/\.(rexx?|cmd)$
  526. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  527. # Disk images for Commodore computers (VIC20, C64, C128)
  528. shell/i/.d64
  529. Open=%cd %p/uc1541://
  530. View=%view{ascii} c1541 %f -list
  531. Extract=c1541 %f -extract
  532. # Glade, a user interface designer for GTK+ and GNOME
  533. shell/i/.glade
  534. Open=@EXTHELPERSDIR@/misc.sh open glade
  535. # Gettext Catalogs
  536. regex/\.g?mo$
  537. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
  538. # po
  539. shell/.po
  540. Open=@EXTHELPERSDIR@/misc.sh open po
  541. # lyx
  542. shell/i/.lyx
  543. Open=@EXTHELPERSDIR@/misc.sh open lyx
  544. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
  545. # torrent
  546. shell/i/.torrent
  547. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
  548. ### Plain compressed files ###
  549. # ace
  550. shell/i/.ace
  551. Open=%cd %p/uace://
  552. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
  553. Extract=unace x %f
  554. # arc
  555. shell/i/.arc
  556. Open=%cd %p/uarc://
  557. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
  558. Extract=arc x %f '*'
  559. Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
  560. # zip
  561. shell/i/.zip
  562. Open=%cd %p/uzip://
  563. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  564. # zip
  565. type/i/^zip\ archive
  566. Open=%cd %p/uzip://
  567. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  568. # jar(zip)
  569. type/i/^Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
  570. Open=%cd %p/uzip://
  571. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  572. # zoo
  573. shell/i/.zoo
  574. Open=%cd %p/uzoo://
  575. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
  576. # gzip
  577. type/^gzip
  578. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  579. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  580. regex/\.(gz|Z)$
  581. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  582. # bzip2
  583. type/^bzip2
  584. Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
  585. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  586. regex/\.bz2?$
  587. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  588. # bzip
  589. type/^bzip
  590. Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
  591. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
  592. # compress
  593. type/^compress
  594. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  595. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  596. # lz
  597. regex/\.lz$
  598. Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
  599. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
  600. # lz
  601. type/^LZIP
  602. Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
  603. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
  604. # lz4
  605. regex/\.lz4$
  606. Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more}
  607. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4
  608. # lzma
  609. regex/\.lzma$
  610. Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
  611. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
  612. # xz
  613. regex/\.xz$
  614. Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
  615. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  616. # Parity Archive
  617. type/^Parity\ Archive\ Volume\ Set
  618. Open=@EXTHELPERSDIR@/archive.sh open par2
  619. ### Default ###
  620. # Default target for anything not described above
  621. default/*
  622. Open=
  623. View=
  624. ### EOF ###