mc.ext.in 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  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.xz, .txz
  129. regex/\.t(ar\.xz|xz)$
  130. Open=%cd %p/utar://
  131. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
  132. # .tar.F - used in QNX
  133. shell/.tar.F
  134. # Open=%cd %p/utar://
  135. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
  136. # .qpr/.qpk - QNX Neutrino package installer files
  137. regex/\.qp[rk]$
  138. Open=%cd %p/utar://
  139. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
  140. # tar
  141. shell/i/.tar
  142. Open=%cd %p/utar://
  143. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
  144. # lha
  145. type/^LHa\ .*archive
  146. Open=%cd %p/ulha://
  147. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
  148. # arj
  149. regex/i/\.a(rj|[0-9][0-9])$
  150. Open=%cd %p/uarj://
  151. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
  152. # cab
  153. shell/i/.cab
  154. Open=%cd %p/ucab://
  155. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
  156. # ha
  157. shell/i/.ha
  158. Open=%cd %p/uha://
  159. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
  160. # rar
  161. regex/i/\.r(ar|[0-9][0-9])$
  162. Open=%cd %p/urar://
  163. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
  164. # ALZip
  165. shell/i/.alz
  166. Open=%cd %p/ualz://
  167. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
  168. # cpio
  169. shell/.cpio.Z
  170. Open=%cd %p/ucpio://
  171. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
  172. shell/.cpio.xz
  173. Open=%cd %p/ucpio://
  174. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
  175. shell/.cpio.gz
  176. Open=%cd %p/ucpio://
  177. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
  178. shell/i/.cpio
  179. Open=%cd %p/ucpio://
  180. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
  181. # 7zip archives (they are not man pages)
  182. shell/i/.7z
  183. Open=%cd %p/u7z://
  184. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
  185. # patch
  186. regex/\.(diff|patch)(\.bz2)$
  187. Open=%cd %p/patchfs://
  188. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  189. regex/\.(diff|patch)(\.(gz|Z))$
  190. Open=%cd %p/patchfs://
  191. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  192. # ls-lR
  193. regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
  194. Open=%cd %p/lslR://
  195. # trpm
  196. shell/.trpm
  197. Open=%cd %p/trpm://
  198. View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
  199. # RPM packages (SuSE uses *.spm for source packages)
  200. regex/\.(src\.rpm|spm)$
  201. Open=%cd %p/rpm://
  202. View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
  203. shell/.rpm
  204. Open=%cd %p/rpm://
  205. View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
  206. # deb
  207. regex/\.u?deb$
  208. Open=%cd %p/deb://
  209. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
  210. # dpkg
  211. shell/.debd
  212. Open=%cd %p/debd://
  213. View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
  214. # apt
  215. shell/.deba
  216. Open=%cd %p/deba://
  217. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
  218. # ISO9660
  219. shell/i/.iso
  220. Open=%cd %p/iso9660://
  221. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
  222. regex/\.(diff|patch)$
  223. Open=%cd %p/patchfs://
  224. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
  225. # ar library
  226. regex/\.s?a$
  227. Open=%cd %p/uar://
  228. #Open=%view{ascii} ar tv %f
  229. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
  230. # gplib
  231. shell/i/.lib
  232. Open=%cd %p/ulib://
  233. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
  234. # Mailboxes
  235. type/^ASCII\ mail\ text
  236. Open=%cd %p/mailfs://
  237. ### Sources ###
  238. # C/C++
  239. regex/i/\.(c|cc|cpp)$
  240. Include=editor
  241. # C/C++ header
  242. regex/i/\.(h|hh|hpp)$
  243. Include=editor
  244. # Fortran
  245. shell/i/.f
  246. Include=editor
  247. # Assembler
  248. regex/i/\.(s|asm)$
  249. Include=editor
  250. include/editor
  251. Open=%var{EDITOR:vi} %f
  252. # .so libraries
  253. regex/\.(so|so\.[0-9\.]*)$
  254. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
  255. # Object
  256. type/^ELF
  257. #Open=%var{PAGER:more} %f
  258. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
  259. ### Documentation ###
  260. # Texinfo
  261. #regex/\.(te?xi|texinfo)$
  262. # GNU Info page
  263. type/^Info\ text
  264. Open=@EXTHELPERSDIR@/text.sh open info
  265. shell/.info
  266. Open=@EXTHELPERSDIR@/text.sh open info
  267. # Exception: .3gp are video files not manual pages
  268. shell/i/.3gp
  269. Include=video
  270. # Manual page
  271. regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
  272. Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
  273. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
  274. # Perl pod page
  275. shell/.pod
  276. Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
  277. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
  278. # Troff with me macros.
  279. # Exception - "read.me" is not a nroff file.
  280. shell/read.me
  281. Open=
  282. View=
  283. shell/.me
  284. Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
  285. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
  286. # Troff with ms macros.
  287. shell/.ms
  288. Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
  289. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
  290. # Manual page - compressed
  291. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
  292. Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
  293. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
  294. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
  295. Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
  296. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
  297. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
  298. Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
  299. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
  300. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
  301. Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
  302. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
  303. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
  304. Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
  305. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
  306. # CHM
  307. shell/i/.chm
  308. Open=@EXTHELPERSDIR@/text.sh open chm
  309. ### Images ###
  310. type/^GIF
  311. Include=image
  312. type/^JPEG
  313. View=%view{ascii} @EXTHELPERSDIR@/image.sh view jpeg
  314. Include=image
  315. type/^PC\ bitmap
  316. Include=image
  317. type/^PNG
  318. Include=image
  319. type/^JNG
  320. Include=image
  321. type/^MNG
  322. Include=image
  323. type/^TIFF
  324. Include=image
  325. type/^PBM
  326. Include=image
  327. type/^PGM
  328. Include=image
  329. type/^PPM
  330. Include=image
  331. type/^Netpbm
  332. Include=image
  333. shell/.xcf
  334. Open=@EXTHELPERSDIR@/image.sh open xcf
  335. shell/.xbm
  336. Open=@EXTHELPERSDIR@/image.sh open xbm
  337. shell/.xpm
  338. Include=image
  339. View=@EXTHELPERSDIR@/image.sh view xpm %f
  340. shell/.ico
  341. Include=image
  342. shell/i/.svg
  343. View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
  344. Open=@EXTHELPERSDIR@/image.sh open svg
  345. include/image
  346. Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
  347. View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
  348. ### Sound files ###
  349. regex/i/\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv)$
  350. Open=@EXTHELPERSDIR@/sound.sh open common
  351. regex/i/\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
  352. Open=@EXTHELPERSDIR@/sound.sh open mod
  353. shell/i/.waw22
  354. Open=@EXTHELPERSDIR@/sound.sh open wav22
  355. shell/i/.mp3
  356. Open=@EXTHELPERSDIR@/sound.sh open mp3
  357. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
  358. regex/i/\.og[gax]$
  359. Open=@EXTHELPERSDIR@/sound.sh open ogg
  360. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
  361. regex/i/\.(spx|flac)$
  362. Open=@EXTHELPERSDIR@/sound.sh open common
  363. regex/i/\.(midi?|rmid?)$
  364. Open=@EXTHELPERSDIR@/sound.sh open midi
  365. shell/i/.wma
  366. Open=@EXTHELPERSDIR@/sound.sh open wma
  367. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
  368. ### Play lists ###
  369. regex/i/\.(m3u|pls)$
  370. Open=@EXTHELPERSDIR@/sound.sh open playlist
  371. ### Video ###
  372. shell/i/.avi
  373. Include=video
  374. regex/i/\.as[fx]$
  375. Include=video
  376. shell/i/.divx
  377. Include=video
  378. shell/i/.mkv
  379. Include=video
  380. regex/i/\.(mov|qt)$
  381. Include=video
  382. regex/i/\.(mp4|m4v|mpe?g)$
  383. Include=video
  384. # MPEG-2 TS container + H.264 codec
  385. shell/i/.mts
  386. Include=video
  387. shell/i/.ts
  388. Include=video
  389. shell/i/.vob
  390. Include=video
  391. shell/i/.wmv
  392. Include=video
  393. regex/i/\.fl[icv]$
  394. Include=video
  395. shell/i/.ogv
  396. Include=video
  397. regex/i/\.ra?m$
  398. Open=@EXTHELPERSDIR@/video.sh open ram
  399. # WebM
  400. shell/i/.webm
  401. Include=video
  402. type/WebM
  403. Include=video
  404. include/video
  405. Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
  406. View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
  407. ### Documents ###
  408. # Postscript
  409. type/^PostScript
  410. Open=@EXTHELPERSDIR@/doc.sh open ps
  411. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
  412. # PDF
  413. type/^PDF
  414. Open=@EXTHELPERSDIR@/doc.sh open pdf
  415. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
  416. # html
  417. regex/i/\.html?$
  418. Open=@EXTHELPERSDIR@/web.sh open html
  419. View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
  420. # StarOffice 5.2
  421. shell/.sdw
  422. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  423. # StarOffice 6 and OpenOffice.org formats
  424. regex/i/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
  425. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  426. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
  427. # AbiWord
  428. shell/.abw
  429. Open=@EXTHELPERSDIR@/doc.sh open abw
  430. # Gnumeric
  431. shell/i/.gnumeric
  432. Open=@EXTHELPERSDIR@/doc.sh open gnumeric
  433. # Microsoft Word Document
  434. regex/i/\.(do[ct]|wri)$
  435. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  436. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  437. type/^Microsoft\ Word
  438. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  439. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  440. # RTF document
  441. shell/i/.rtf
  442. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  443. # Microsoft Excel Worksheet
  444. regex/i/\.xl[sw]$
  445. Open=@EXTHELPERSDIR@/doc.sh open msxls
  446. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  447. type/^Microsoft\ Excel
  448. Open=@EXTHELPERSDIR@/doc.sh open msxls
  449. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  450. regex/i/\.(ppt|pps)$
  451. Open=@EXTHELPERSDIR@/doc.sh open msppt
  452. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt
  453. # Use OpenOffice.org to open any MS Office documents
  454. type/^Microsoft\ Office\ Document
  455. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  456. # Framemaker
  457. type/^FrameMaker
  458. Open=@EXTHELPERSDIR@/doc.sh open framemaker
  459. # DVI
  460. shell/i/.dvi
  461. Open=@EXTHELPERSDIR@/doc.sh open dvi
  462. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
  463. # TeX
  464. shell/i/.tex
  465. Include=editor
  466. # DjVu
  467. regex/i/\.djvu?$
  468. Open=@EXTHELPERSDIR@/doc.sh open djvu
  469. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
  470. # Comic Books
  471. regex/i/\.cb[zr]$
  472. Open=@EXTHELPERSDIR@/doc.sh open comic
  473. # Epub
  474. shell/i/.epub
  475. Open=@EXTHELPERSDIR@/doc.sh open epub
  476. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view epub
  477. ### Miscellaneous ###
  478. # Compiled Java classes
  479. shell/.class
  480. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass
  481. # Makefile
  482. regex/[Mm]akefile$
  483. Open=make -f %f %{Enter parameters}
  484. # Imakefile
  485. shell/Imakefile
  486. Open=@EXTHELPERSDIR@/misc.sh open imakefile
  487. # Makefile.PL (MakeMaker)
  488. regex/^Makefile.(PL|pl)$
  489. Open=%var{PERL:perl} %f
  490. # sqlite3.db
  491. type/^SQLite 3.x database
  492. Open=@EXTHELPERSDIR@/misc.sh open sqlite
  493. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
  494. # dbf
  495. shell/i/.dbf
  496. Open=@EXTHELPERSDIR@/misc.sh open dbf
  497. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
  498. # REXX script
  499. regex/\.(rexx?|cmd)$
  500. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  501. # Disk images for Commodore computers (VIC20, C64, C128)
  502. shell/i/.d64
  503. Open=%cd %p/uc1541://
  504. View=%view{ascii} c1541 %f -list
  505. Extract=c1541 %f -extract
  506. # Glade, a user interface designer for GTK+ and GNOME
  507. shell/i/.glade
  508. Open=@EXTHELPERSDIR@/misc.sh open glade
  509. # Gettext Catalogs
  510. shell/.mo
  511. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
  512. # lyx
  513. shell/i/.lyx
  514. Open=@EXTHELPERSDIR@/misc.sh open lyx
  515. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
  516. # torrent
  517. shell/i/.torrent
  518. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
  519. ### Plain compressed files ###
  520. # ace
  521. shell/i/.ace
  522. Open=%cd %p/uace://
  523. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
  524. Extract=unace x %f
  525. # arc
  526. shell/i/.arc
  527. Open=%cd %p/uarc://
  528. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
  529. Extract=arc x %f '*'
  530. Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
  531. # zip
  532. type/i/^zip\ archive
  533. Open=%cd %p/uzip://
  534. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  535. # zoo
  536. shell/i/.zoo
  537. Open=%cd %p/uzoo://
  538. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
  539. # gzip
  540. type/^gzip
  541. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  542. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  543. regex/\.(gz|Z)$
  544. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  545. # bzip2
  546. type/^bzip2
  547. Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
  548. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  549. regex/\.bz2?$
  550. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  551. # bzip
  552. type/^bzip
  553. Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
  554. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
  555. # compress
  556. type/^compress
  557. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  558. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  559. # lzma
  560. regex/\.lzma$
  561. Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
  562. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
  563. # xz
  564. regex/\.xz$
  565. Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
  566. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  567. # Parity Archive
  568. type/^Parity\ Archive\ Volume\ Set
  569. Open=@EXTHELPERSDIR@/archive.sh open par2
  570. ### Default ###
  571. # Default target for anything not described above
  572. default/*
  573. Open=
  574. View=
  575. ### EOF ###