mc.ext.in 21 KB

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