mc.ext.in 21 KB

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