mc.ext.ini.in 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  1. # Midnight Commander 4.0 extension file
  2. #
  3. # Warning: The structure of this file has been completely changed with the version 4.0!
  4. #
  5. # All lines starting with # or empty lines are ignoted.
  6. #
  7. # IMPORTANT: mc scans this file only upon first use or after editing it using the
  8. # mc "Edit extension file" command (F9-c-e). If you edit this file in any other way
  9. # while mc is running, you will need to press F9-c-e and exit the editor for your
  10. # changes to take effect, or exit mc and start it again.
  11. #
  12. # Section name can be anything with following exceptions:
  13. # there are two reserved section names:
  14. # mc.ext.ini
  15. # Default
  16. # special name pattern:
  17. # Include/xxxxx
  18. # See below for more details.
  19. #
  20. # Section [mc.ext.ini] is mandatory. It contains file metadata.
  21. # "Version" parameter is mandatory. It contains the file format version.
  22. #
  23. # Section [Default] is optional. It is applied only if no other match was found.
  24. #
  25. # Sections like [Include/xxxx] can be referenced as "Include=xxxx" from other sections.
  26. # Section [Include/xxxx] can be located as before as after sections that point to it.
  27. #
  28. # Sections are processed from top to bottom, thus the order is important.
  29. # If there are more than one sections with the same name in this file, the first
  30. # section will be used.
  31. #
  32. # [Default] should be a catch-all action and come last.
  33. #
  34. # A section describing a file can contain following keys:
  35. #
  36. # File descriptions:
  37. #
  38. # Directory
  39. # Matches any directory matching regular expression.
  40. # Always case sensitive.
  41. # This key has the highest priority over other keys. If this key is in a section,
  42. # other keys are ignored.
  43. #
  44. # Type
  45. # Matches files if `file %f` matches regular expression
  46. # (the "filename:" part is removed from `file %f` output).
  47. # Ignored if the "file" utility isn't used (not found during the configure step
  48. # or disabled in the ini-file).
  49. #
  50. # TypeIgnoreCase [true|false]
  51. # Defines whether the Type value is case sensitive or not.
  52. # If absent, Type is case sensitive.
  53. #
  54. # Regex
  55. # An extended regular expression
  56. # Please note that we are using the PCRE library and thus \| matches
  57. # the literal | and | has a special meaning (or), and () have a special meaning
  58. # and \( \) stand for literal ( ).
  59. #
  60. # Example:
  61. # Regex=\.t(ar\.lzma|lz)$
  62. # matches *.tar.lzma or *.tlz.
  63. #
  64. # RegexIgnoreCase [true|false]
  65. # Defines whether the Regex value is case sensitive or not.
  66. # If absent, Regex is case sensitive.
  67. #
  68. # Shell
  69. # Describes an extension when starting with a dot (no wildcards).
  70. #
  71. # Example:
  72. # Shell=.tar
  73. # matches *.tar.
  74. #
  75. # If it doesn't start with a dot, it matches only a file of that name.
  76. #
  77. # If both keys Regex and Shell are in the same section, Regex is used
  78. # and Shell is ignored.
  79. #
  80. # ShellIgnoreCase [true|false]
  81. # Defines whether the Shell value is case sensitive or not.
  82. # If absent, Shell is case sensitive.
  83. #
  84. # Include
  85. # Reference to another section.
  86. #
  87. # Example:
  88. # Include=video
  89. # points to the [Include/video] section.
  90. #
  91. # Commands:
  92. #
  93. # Open
  94. # Execute the command if the user presses Enter or doubleclicks it.
  95. #
  96. # View
  97. # Execute the command if the user presses F3.
  98. #
  99. # Edit
  100. # Execute the command if the user presses F4.
  101. #
  102. # All commands are ignored if the section contains the Include key.
  103. #
  104. # Command is any one-line shell command, with the following substitutions:
  105. #
  106. # %%
  107. # The % character
  108. #
  109. # %p
  110. # Name of the current file without the path.
  111. # Also provided to the external application as MC_EXT_BASENAME environment variable.
  112. #
  113. # %f
  114. # Name of the current file. Unlike %p, if the file is located on a non-local
  115. # virtual filesystem, that is either tarfs or ftpfs, then the file will be
  116. # temporarily copied into a local directory and %f will be the full path
  117. # to this local temporary file.
  118. # If you don't want to get a local copy and want to get the virtual fs path
  119. # (like /ftp://ftp.cvut.cz/pub/hungry/xword), then use %d/%p instead of %f.
  120. # Also provided to the external application as MC_EXT_FILENAME environment variable.
  121. #
  122. # %d
  123. # Name of the current directory without the trailing slash (`pwd`).
  124. # Also provided to the external application as MC_EXT_CURRENTDIR environment variable.
  125. #
  126. # %s
  127. # "Selected files", that is space separated list of tagged files if any or the name
  128. # of the current file.
  129. # Also provided to the external application as MC_EXT_SELECTED environment variable.
  130. #
  131. # %t
  132. # List of the tagged files.
  133. # Also provided to the external application as MC_EXT_ONLYTAGGED environment variable.
  134. #
  135. # %u
  136. # List of the tagged files (they will be untaged after the command is executed).
  137. #
  138. # (If the letter following the % is uppercase, then it refers to the opposite panel.
  139. # But you shouldn't have to use it in this file.)
  140. #
  141. # %cd
  142. # The rest is a path mc should change into (cd won't work, since it's a child process).
  143. # %cd handles even vfs names.
  144. #
  145. # %view
  146. # The command output will be piped into mc's internal file viewer. If you use
  147. # only %view and no command, the viewer will load %f file instead (that is no piping,
  148. # which is the difference to %view cat %f).
  149. #
  150. # %view may be directly followed by {} with one or more of the following
  151. # separated by commas:
  152. # ascii (ascii mode)
  153. # hex (hex mode),
  154. # nroff (color highlighting for text using escape sequences),
  155. # unform (no highlighting for nroff sequences)
  156. #
  157. # %var{VAR:default}
  158. # This macro will expand to the value of the VAR variable in the environment if it's
  159. # set, otherwise the default value will be used. This is similar to the Bourne shell
  160. # ${VAR-default} construct.
  161. #
  162. # Section can contain both Type and Regex or Type and Shell keys. In this case
  163. # they are handled as an AND condition.
  164. #
  165. # Example:
  166. # Shell=.3gp
  167. # Type=^ISO Media.*3GPP
  168. #
  169. # matches *.3gp files for which `file` output is a line starting with "ISO Media"
  170. # and containing "3GPP".
  171. #
  172. # If there are more than one keys with the same name in a section, the last key will be used.
  173. #
  174. #
  175. # Any new entries you want to add are always welcome if they are useful on more than one
  176. # system. You can post your modifications as tickets at www.midnight-commander.org.
  177. ### Changes ###
  178. #
  179. # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com>
  180. # 2021-03-28 Andrew Borodin <aborodin@vmail.ru>
  181. # 2021-08-24 Tomas Szepe <szepe@pinerecords.com>
  182. # 2022-09-11 Andrew Borodin <aborodin@vmail.ru>: port to INI format.
  183. [mc.ext.ini]
  184. Version=4.0
  185. ### GIT Repo ###
  186. [gitfs changeset]
  187. Regex=^\[git\]
  188. Open=%cd %p/changesetfs://
  189. View=%cd %p/patchsetfs://
  190. ### Archives ###
  191. # Since we use "file -z", we should use Regex and Shell first, then Type.
  192. ######### Files by name (Regex and Shell) #########
  193. # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
  194. [tar.gzip]
  195. Regex=\.t([gp]?z|ar\.g?[zZ])$
  196. Include=tar.gz
  197. [ipk]
  198. Shell=.ipk
  199. Include=tar.gz
  200. [gem]
  201. Shell=.gem
  202. Include=tar.gz
  203. [tar.bzip]
  204. Shell=.tar.bz
  205. # Open=%cd %p/utar://
  206. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip
  207. [tar.bzip2]
  208. Regex=\.t(ar\.bz2|bz2?|b2)$
  209. Open=%cd %p/utar://
  210. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2
  211. # .tar.lzma, .tlz
  212. [tar.lzma]
  213. Regex=\.t(ar\.lzma|lz)$
  214. Open=%cd %p/utar://
  215. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma
  216. [tar.lz]
  217. Shell=.tar.lz
  218. Open=%cd %p/utar://
  219. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz
  220. # .tar.lz4, .tlz4
  221. [tar.lz4]
  222. Regex=\.t(ar\.lz4|lz4)$
  223. Open=%cd %p/utar://
  224. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz4
  225. # .tar.xz, .txz
  226. [tar.xz]
  227. Regex=\.t(ar\.xz|xz)$
  228. Open=%cd %p/utar://
  229. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
  230. # .tar.zst, .tzst
  231. [tar.zst]
  232. Regex=\.t(ar\.zst|zst)$
  233. Open=%cd %p/utar://
  234. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.zst
  235. # .tar.F - used on QNX
  236. [tar.F]
  237. Shell=.tar.F
  238. # Open=%cd %p/utar://
  239. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
  240. # .qpr/.qpk - QNX Neutrino package installer files
  241. [tar.qpr]
  242. Regex=\.qp[rk]$
  243. Open=%cd %p/utar://
  244. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
  245. [tar]
  246. Shell=.tar
  247. ShellIgnoreCase=true
  248. Open=%cd %p/utar://
  249. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
  250. [arj]
  251. Regex=\.a(rj|[0-9][0-9])$
  252. RegexIgnoreCase=true
  253. Open=%cd %p/uarj://
  254. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
  255. [cab]
  256. Shell=.cab
  257. ShellIgnoreCase=true
  258. Open=%cd %p/ucab://
  259. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
  260. [ha]
  261. Shell=.ha
  262. ShellIgnoreCase=true
  263. Open=%cd %p/uha://
  264. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
  265. [rar]
  266. Regex=\.r(ar|[0-9][0-9])$
  267. RegexIgnoreCase=true
  268. Open=%cd %p/urar://
  269. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
  270. # ALZip
  271. [alz]
  272. Shell=.alz
  273. ShellIgnoreCase=true
  274. Open=%cd %p/ualz://
  275. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
  276. [cpio.Z]
  277. Shell=.cpio.Z
  278. Open=%cd %p/ucpio://
  279. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
  280. [cpio.lz]
  281. Shell=.cpio.lz
  282. Open=%cd %p/ucpio://
  283. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz
  284. [cpio.lz4]
  285. Shell=.cpio.lz4
  286. Open=%cd %p/ucpio://
  287. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz4
  288. [cpio.xz]
  289. Shell=.cpio.xz
  290. Open=%cd %p/ucpio://
  291. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
  292. [cpio.zst]
  293. Shell=.cpio.zst
  294. Open=%cd %p/ucpio://
  295. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.zst
  296. [cpio.gz]
  297. Shell=.cpio.gz
  298. Open=%cd %p/ucpio://
  299. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
  300. [cpio]
  301. Shell=.cpio
  302. ShellIgnoreCase=true
  303. Include=cpio
  304. [initrd]
  305. Regex=^(initramfs.*\.img|initrd(-.+)?\.img(-.+)?)$
  306. Include=cpio
  307. [7zip]
  308. Shell=.7z
  309. ShellIgnoreCase=true
  310. Open=%cd %p/u7z://
  311. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
  312. [patch]
  313. Regex=\.(diff|patch)$
  314. Open=%cd %p/patchfs://
  315. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
  316. [patch.gz]
  317. Regex=\.(diff|patch)\.(gz|Z)$
  318. Open=%cd %p/patchfs://
  319. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  320. [patch.bz2]
  321. Regex=\.(diff|patch)\.bz2$
  322. Open=%cd %p/patchfs://
  323. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  324. [patch.xz]
  325. Regex=\.(diff|patch)\.xz$
  326. Open=%cd %p/patchfs://
  327. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  328. [patch.zst]
  329. Regex=\.(diff|patch)\.zst$
  330. Open=%cd %p/patchfs://
  331. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
  332. [ls-lR]
  333. Regex=(^|\.)ls-?lR(\.gz|Z|bz2)$
  334. Open=%cd %p/lslR://
  335. [trpm]
  336. Shell=.trpm
  337. Open=%cd %p/trpm://
  338. View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
  339. # RPM packages (SuSE uses *.spm for source packages)
  340. [src.rpm]
  341. Regex=\.(src\.rpm|spm)$
  342. Open=%cd %p/rpm://
  343. View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
  344. [rpm]
  345. Shell=.rpm
  346. Open=%cd %p/rpm://
  347. View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
  348. [deb]
  349. Regex=\.u?deb$
  350. Open=%cd %p/deb://
  351. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
  352. [dpkg]
  353. Shell=.debd
  354. Open=%cd %p/debd://
  355. View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
  356. [apt]
  357. Shell=.deba
  358. Open=%cd %p/deba://
  359. Ciew=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
  360. [ISO9660]
  361. Shell=.iso
  362. ShellIgnoreCase=true
  363. Open=%cd %p/iso9660://
  364. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
  365. [ar]
  366. Regex=\.s?a$
  367. Open=%cd %p/uar://
  368. #Open=%view{ascii} ar tv %f
  369. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
  370. [gplib]
  371. Shell=.lib
  372. ShellIgnoreCase=true
  373. Open=%cd %p/ulib://
  374. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
  375. ### Sources ###
  376. [C/C++]
  377. Regex=\.(c|cc|cpp|cxx|c\+\+)$
  378. RegexIgnoreCase=true
  379. Include=editor
  380. [C/C++ header]
  381. Regex=\.(h|hh|hpp|hxx|h\+\+)$
  382. RegexIgnoreCase=true
  383. Include=editor
  384. [Fortran]
  385. Shell=.f
  386. ShellIgnoreCase=true
  387. Include=editor
  388. [Assembler]
  389. Regex=\.(s|asm)$
  390. RegexIgnoreCase=true
  391. Include=editor
  392. [Typescript]
  393. Shell=.ts
  394. ShellIgnoreCase=true
  395. Type=^Java source
  396. Include=editor
  397. # .so libraries
  398. [so]
  399. Regex=\.(so|so\.[0-9\.]*)$
  400. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
  401. ### Documentation ###
  402. #[Texinfo]
  403. #Regex=\.(te?xi|texinfo)$
  404. [info-by-shell]
  405. Shell=.info
  406. Open=@EXTHELPERSDIR@/text.sh open info
  407. # Exception: .3gp are video files, not manual pages
  408. [3gp]
  409. Shell=.3gp
  410. ShellIgnoreCase=true
  411. Type=^ISO Media.*3GPP
  412. Include=video
  413. # Troff with me macros.
  414. # Exception - "read.me" is not a nroff file.
  415. [read.me]
  416. Shell=read.me
  417. Open=
  418. View=
  419. [troff]
  420. Shell=.me
  421. Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
  422. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
  423. [roff with ms macros]
  424. Shell=.ms
  425. Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
  426. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
  427. # Manual page
  428. [man.lz]
  429. Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz$
  430. Open=@EXTHELPERSDIR@/text.sh open man.lz %var{PAGER:more}
  431. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz %var{PAGER:more}
  432. [man.lz4]
  433. Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz4$
  434. Open=@EXTHELPERSDIR@/text.sh open man.lz4 %var{PAGER:more}
  435. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz4 %var{PAGER:more}
  436. [man.lzma]
  437. Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
  438. Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
  439. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
  440. [man.xz]
  441. Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
  442. Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
  443. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
  444. [man.zst]
  445. Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.zst$
  446. Open=@EXTHELPERSDIR@/text.sh open man.zst %var{PAGER:more}
  447. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.zst %var{PAGER:more}
  448. # Perl pod page
  449. [pod]
  450. Shell=.pod
  451. Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
  452. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
  453. [chm]
  454. Shell=.chm
  455. ShellIgnoreCase=true
  456. Open=@EXTHELPERSDIR@/text.sh open chm
  457. ### Images ###
  458. [xcf]
  459. Shell=.xcf
  460. Open=@EXTHELPERSDIR@/image.sh open xcf
  461. [xbm]
  462. Shell=.xbm
  463. Open=@EXTHELPERSDIR@/image.sh open xbm
  464. [xpm]
  465. Shell=.xpm
  466. Include=image
  467. [ico]
  468. Shell=.ico
  469. Include=image
  470. [svg]
  471. Shell=.svg
  472. ShellIgnoreCase=true
  473. View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
  474. Open=@EXTHELPERSDIR@/image.sh open svg
  475. ### Sound files ###
  476. [sound]
  477. Regex=\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$
  478. RegexIgnoreCase=true
  479. Open=@EXTHELPERSDIR@/sound.sh open common
  480. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view common
  481. [mod]
  482. Regex=\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
  483. RegexIgnoreCase=true
  484. Open=@EXTHELPERSDIR@/sound.sh open mod
  485. [wav22]
  486. Shell=.waw22
  487. ShellIgnoreCase=true
  488. Open=@EXTHELPERSDIR@/sound.sh open wav22
  489. [mp3]
  490. Shell=.mp3
  491. ShellIgnoreCase=true
  492. Open=@EXTHELPERSDIR@/sound.sh open mp3
  493. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
  494. [ogg]
  495. Regex=\.og[gax]$
  496. RegexIgnoreCase=true
  497. Open=@EXTHELPERSDIR@/sound.sh open ogg
  498. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
  499. [opus]
  500. Shell=.opus
  501. ShellIgnoreCase=true
  502. Open=@EXTHELPERSDIR@/sound.sh open opus
  503. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view opus
  504. [midi]
  505. Regex=\.(midi?|rmid?)$
  506. RegexIgnoreCase=true
  507. Open=@EXTHELPERSDIR@/sound.sh open midi
  508. [wma]
  509. Shell=.wma
  510. ShellIgnoreCase=true
  511. Open=@EXTHELPERSDIR@/sound.sh open wma
  512. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
  513. # Play list
  514. [playlist]
  515. Regex=\.(m3u|pls)$
  516. RegexIgnoreCase=true
  517. Open=@EXTHELPERSDIR@/sound.sh open playlist
  518. ### Video ###
  519. [avi]
  520. Shell=.avi
  521. ShellIgnoreCase=true
  522. Include=video
  523. [asf]
  524. Regex=\.as[fx]$
  525. RegexIgnoreCase=true
  526. Include=video
  527. [divx]
  528. Shell=.divx
  529. ShellIgnoreCase=true
  530. Include=video
  531. [mkv]
  532. Shell=.mkv
  533. ShellIgnoreCase=true
  534. Include=video
  535. [mov]
  536. Regex=\.(mov|qt)$
  537. RegexIgnoreCase=true
  538. Include=video
  539. [mp4]
  540. Regex=\.(mp4|m4v|mpe?g)$
  541. RegexIgnoreCase=true
  542. Include=video
  543. # MPEG-2 TS container + H.264 codec
  544. [mts]
  545. Shell=.mts
  546. ShellIgnoreCase=true
  547. Include=video
  548. [ts]
  549. Shell=.ts
  550. ShellIgnoreCase=true
  551. Include=video
  552. [bob]
  553. Shell=.vob
  554. ShellIgnoreCase=true
  555. Include=video
  556. [wmv]
  557. Shell=.wmv
  558. ShellIgnoreCase=true
  559. Include=video
  560. [fli]
  561. Regex=\.fl[icv]$
  562. RegexIgnoreCase=true
  563. Include=video
  564. [ogv]
  565. Shell=.ogv
  566. ShellIgnoreCase=true
  567. Include=video
  568. [realaudio]
  569. Regex=\.ra?m$
  570. RegexIgnoreCase=true
  571. Open=@EXTHELPERSDIR@/video.sh open ram
  572. [webm-by-shell]
  573. Shell=.webm
  574. ShellIgnoreCase=true
  575. Include=video
  576. ### Documents ###
  577. [html]
  578. Regex=\.html?$
  579. RegexIgnoreCase=true
  580. Open=@EXTHELPERSDIR@/web.sh open html
  581. View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
  582. [StarOffice-5.2]
  583. Shell=.sdw
  584. ShellIgnoreCase=true
  585. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  586. # StarOffice 6 and OpenOffice.org formats
  587. [OpenOffice.org]
  588. Regex=\.(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)$
  589. RegexIgnoreCase=true
  590. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  591. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
  592. [AbiWord]
  593. Shell=.abw
  594. ShellIgnoreCase=true
  595. Open=@EXTHELPERSDIR@/doc.sh open abw
  596. [Gnumeric]
  597. Shell=.gnumeric
  598. ShellIgnoreCase=true
  599. Open=@EXTHELPERSDIR@/doc.sh open gnumeric
  600. [rtf]
  601. Shell=.rtf
  602. ShellIgnoreCase=true
  603. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  604. # Microsoft Word Document
  605. [msdoc-by-shell]
  606. Regex=\.(do[ct]|wri|docx)$
  607. RegexIgnoreCase=true
  608. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  609. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  610. # Microsoft Excel Worksheet
  611. [msxls-by-shell]
  612. Regex=\.(xl[sw]|xlsx)$
  613. RegexIgnoreCase=true
  614. Open=@EXTHELPERSDIR@/doc.sh open msxls
  615. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  616. # Microsoft PowerPoint Presentation
  617. [msppt]
  618. Regex=\.(pp[ts]|pptx)$
  619. RegexIgnoreCase=true
  620. Open=@EXTHELPERSDIR@/doc.sh open msppt
  621. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt
  622. [dvi]
  623. Shell=.dvi
  624. ShellIgnoreCase=true
  625. Open=@EXTHELPERSDIR@/doc.sh open dvi
  626. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
  627. [tex]
  628. Shell=.tex
  629. ShellIgnoreCase=true
  630. Include=editor
  631. [markdown]
  632. Regex=\.(md|mkd)$
  633. ShellIgnoreCase=true
  634. Include=editor
  635. [djvu]
  636. Regex=\.djvu?$
  637. RegexIgnoreCase=true
  638. Open=@EXTHELPERSDIR@/doc.sh open djvu
  639. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
  640. # Comic Books
  641. [cbr]
  642. Regex=\.cb[zr]$
  643. RegexIgnoreCase=true
  644. Open=@EXTHELPERSDIR@/doc.sh open comic
  645. # Epup, mobi, fb2
  646. [ebook]
  647. Regex=\.(epub|mobi|fb2)$
  648. RegexIgnoreCase=true
  649. Open=@EXTHELPERSDIR@/doc.sh open ebook
  650. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ebook
  651. ### Miscellaneous ###
  652. # Compiled Java classes
  653. [javaclass]
  654. Shell=.class
  655. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass
  656. [Imakefile]
  657. Shell=Imakefile
  658. Open=xmkmf -a
  659. # Makefile.PL (MakeMaker)
  660. [Makefile.pl]
  661. Regex=^Makefile\.(PL|pl)$
  662. Open=%var{PERL:perl} %f
  663. [Makefile]
  664. Regex=^[Mm]akefile
  665. Open=make -f %f %{Enter parameters}
  666. [dbf]
  667. Shell=.dbf
  668. ShellIgnoreCase=true
  669. Open=@EXTHELPERSDIR@/misc.sh open dbf
  670. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
  671. # REXX script
  672. [rexx]
  673. Regex=\.(rexx?|cmd)$
  674. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  675. # Disk images for Commodore computers (VIC20, C64, C128)
  676. [d64]
  677. Shell=.d64
  678. ShellIgnoreCase=true
  679. Open=%cd %p/uc1541://
  680. View=%view{ascii} c1541 %f -list
  681. # Glade, a user interface designer for GTK+ and GNOME
  682. [glade]
  683. Shell=.glade
  684. ShellIgnoreCase=true
  685. Open=@EXTHELPERSDIR@/misc.sh open glade
  686. # Gettext Catalogs
  687. [mo]
  688. Regex=.g?mo$
  689. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
  690. [po]
  691. Shell=.po
  692. Open=@EXTHELPERSDIR@/misc.sh open po
  693. [lyx]
  694. Shell=.lyx
  695. ShellIgnoreCase=true
  696. Open=@EXTHELPERSDIR@/misc.sh open lyx
  697. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
  698. [torrent]
  699. Shell=.torrent
  700. ShellIgnoreCase=true
  701. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
  702. ### Plain compressed files ###
  703. [ace]
  704. Shell=.ace
  705. ShellIgnoreCase=true
  706. Open=%cd %p/uace://
  707. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
  708. [arc]
  709. Shell=.arc
  710. ShellIgnoreCase=true
  711. Open=%cd %p/uarc://
  712. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
  713. [zip-by-shell]
  714. Shell=.zip
  715. ShellIgnoreCase=true
  716. Open=%cd %p/uzip://
  717. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  718. [zoo]
  719. Shell=.zoo
  720. ShellIgnoreCase=true
  721. Open=%cd %p/uzoo://
  722. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
  723. [lz4]
  724. Shell=.lz4
  725. ShellIgnoreCase=true
  726. Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more}
  727. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4
  728. [wim]
  729. Shell=.wim
  730. ShellIgnoreCase=true
  731. Open=%cd %p/uwim://
  732. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim
  733. ######### Files by Type #########
  734. ### Archives ###
  735. [mailbox]
  736. Type=^ASCII\ mail\ text
  737. Open=%cd %p/mailfs://
  738. ### Sources ###
  739. # Object
  740. [elf]
  741. Type=^ELF
  742. #Open=%var{PAGER:more} %f
  743. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
  744. ### Documentation ###
  745. # GNU Info page
  746. [info-by-type]
  747. Type=^Info\ text
  748. Open=@EXTHELPERSDIR@/text.sh open info
  749. # Manual page - compressed
  750. [troff.gz]
  751. Type=troff.*gzip compressed
  752. Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
  753. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
  754. [troff.bzip]
  755. Type=troff.*bzip compressed
  756. Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
  757. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
  758. [troff.bzip2]
  759. Type=troff.*bzip2 compressed
  760. Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
  761. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
  762. # Manual page
  763. [man]
  764. Type=troff or preprocessor input
  765. Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
  766. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
  767. ### Images ###
  768. [gif]
  769. Type=^GIF
  770. Include=image
  771. [jpeg]
  772. Type=^JPEG
  773. Include=image
  774. [bitmap]
  775. Type=^PC\ bitmap
  776. Include=image
  777. [png]
  778. Type=^PNG
  779. Include=image
  780. [jng]
  781. Type=^JNG
  782. Include=image
  783. [mng]
  784. Type=^MNG
  785. Include=image
  786. [tiff]
  787. Type=^TIFF
  788. Include=image
  789. [rbm]
  790. Type=^PBM
  791. Include=image
  792. [pgm]
  793. Type=^PGM
  794. Include=image
  795. [ppm]
  796. Type=^PPM
  797. Include=image
  798. [netpbm]
  799. Type=^Netpbm
  800. Include=image
  801. ### Video ###
  802. [webm-by-type]
  803. Type=WebM
  804. Include=video
  805. ### Documents ###
  806. [postscript]
  807. Type=^PostScript
  808. Open=@EXTHELPERSDIR@/doc.sh open ps
  809. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
  810. [pdf]
  811. Type=^PDF
  812. Open=@EXTHELPERSDIR@/doc.sh open pdf
  813. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
  814. # Microsoft Word Document
  815. [msdoc-by-type]
  816. Type=^Microsoft\ Word
  817. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  818. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  819. # Microsoft Excel Worksheet
  820. [msxls-by-type]
  821. Type=^Microsoft\ Excel
  822. Open=@EXTHELPERSDIR@/doc.sh open msxls
  823. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  824. # Use OpenOffice.org/LibreOffice to open any MS Office documents
  825. [mso-doc-1]
  826. Type=^Microsoft\ Office\ Document
  827. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  828. [mso-doc-2]
  829. Type=^Microsoft\ OOXML
  830. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  831. [framemaker]
  832. Type=^FrameMaker
  833. Open=@EXTHELPERSDIR@/doc.sh open framemaker
  834. ### Miscellaneous ###
  835. [sqlite3.db]
  836. Type=^SQLite 3.x database
  837. Open=@EXTHELPERSDIR@/misc.sh open sqlite
  838. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
  839. ### Plain compressed files ###
  840. [gzip]
  841. Type=\(gzip compressed
  842. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  843. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  844. [bzip]
  845. Type=\(bzip compressed
  846. Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
  847. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
  848. [bzip2]
  849. Type=\(bzip2 compressed
  850. Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
  851. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  852. [compress]
  853. Type=\(compress'd
  854. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  855. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  856. [lz]
  857. Type=\(lzip compressed
  858. Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
  859. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
  860. [lzma]
  861. Type=\(LZMA compressed
  862. Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
  863. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
  864. [xz]
  865. Type=\(XZ compressed
  866. Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
  867. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  868. [zstd]
  869. Type=\(Zstandard compressed
  870. Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more}
  871. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
  872. [zip-by-type]
  873. Type=\(Zip archive
  874. Open=%cd %p/uzip://
  875. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  876. [jar]
  877. Type=\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
  878. TypeIgnoreCase=true
  879. Open=%cd %p/uzip://
  880. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  881. [lha]
  882. Type=^LHa\ .*archive
  883. Open=%cd %p/ulha://
  884. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
  885. [pak]
  886. Type=^PAK\ .*archive
  887. Open=%cd %p/unar://
  888. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak
  889. # Parity Archive
  890. [par2]
  891. Type=^Parity\ Archive\ Volume\ Set
  892. Open=@EXTHELPERSDIR@/archive.sh open par2
  893. ######### Includes #########
  894. # Includes should be at end of the bindings
  895. [Include/tar.gz]
  896. Open=%cd %p/utar://
  897. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
  898. [Include/cpio]
  899. Open=%cd %p/ucpio://
  900. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
  901. [Include/editor]
  902. Open=%var{EDITOR:vi} %f
  903. [Include/image]
  904. Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
  905. View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
  906. [Include/video]
  907. Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
  908. View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
  909. ######### Default #########
  910. # Default target for anything not described above
  911. [Default]
  912. Open=
  913. View=
  914. ### EOF ###