mc.ext.in 20 KB

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