mc.ext.ini.in 27 KB

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