mc.ext.ini.in 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186
  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. [gem]
  202. Shell=.gem
  203. Include=tar.gz
  204. [crate]
  205. Shell=.crate
  206. Include=tar.gz
  207. [tar.bzip]
  208. Shell=.tar.bz
  209. # Open=%cd %p/utar://
  210. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip
  211. [tar.bzip2]
  212. Regex=\\.t(ar\\.bz2|bz2?|b2)$
  213. Open=%cd %p/utar://
  214. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2
  215. # .tar.lzma, .tlz
  216. [tar.lzma]
  217. Regex=\\.t(ar\\.lzma|lz)$
  218. Open=%cd %p/utar://
  219. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma
  220. [tar.lz]
  221. Shell=.tar.lz
  222. Open=%cd %p/utar://
  223. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz
  224. # .tar.lz4, .tlz4
  225. [tar.lz4]
  226. Regex=\\.t(ar\\.lz4|lz4)$
  227. Open=%cd %p/utar://
  228. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz4
  229. # .tar.lzo, .tzo
  230. [tar.lzo]
  231. Regex=\\.t(ar\\.lzo|zo)$
  232. Open=%cd %p/utar://
  233. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzo
  234. # .tar.xz, .txz
  235. [tar.xz]
  236. Regex=\\.t(ar\\.xz|xz)$
  237. Open=%cd %p/utar://
  238. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
  239. # .tar.zst, .tzst
  240. [tar.zst]
  241. Regex=\\.t(ar\\.zst|zst)$
  242. Open=%cd %p/utar://
  243. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.zst
  244. # .tar.F - used on QNX
  245. [tar.F]
  246. Shell=.tar.F
  247. # Open=%cd %p/utar://
  248. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
  249. # .qpr/.qpk - QNX Neutrino package installer files
  250. [tar.qpr]
  251. Regex=\\.qp[rk]$
  252. Open=%cd %p/utar://
  253. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
  254. [tar]
  255. Shell=.tar
  256. ShellIgnoreCase=true
  257. Open=%cd %p/utar://
  258. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
  259. [arj]
  260. Regex=\\.a(rj|[0-9][0-9])$
  261. RegexIgnoreCase=true
  262. Open=%cd %p/uarj://
  263. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
  264. [cab]
  265. Shell=.cab
  266. ShellIgnoreCase=true
  267. Open=%cd %p/ucab://
  268. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
  269. [ha]
  270. Shell=.ha
  271. ShellIgnoreCase=true
  272. Open=%cd %p/uha://
  273. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
  274. [rar]
  275. Regex=\\.r(ar|[0-9][0-9])$
  276. RegexIgnoreCase=true
  277. Open=%cd %p/urar://
  278. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
  279. # ALZip
  280. [alz]
  281. Shell=.alz
  282. ShellIgnoreCase=true
  283. Open=%cd %p/ualz://
  284. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
  285. [cpio.Z]
  286. Shell=.cpio.Z
  287. Open=%cd %p/ucpio://
  288. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
  289. [cpio.lz]
  290. Shell=.cpio.lz
  291. Open=%cd %p/ucpio://
  292. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz
  293. [cpio.lz4]
  294. Shell=.cpio.lz4
  295. Open=%cd %p/ucpio://
  296. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz4
  297. [cpio.lzo]
  298. Shell=.cpio.lzo
  299. Open=%cd %p/ucpio://
  300. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lzo
  301. [cpio.xz]
  302. Shell=.cpio.xz
  303. Open=%cd %p/ucpio://
  304. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
  305. [cpio.zst]
  306. Shell=.cpio.zst
  307. Open=%cd %p/ucpio://
  308. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.zst
  309. [cpio.gz]
  310. Shell=.cpio.gz
  311. Open=%cd %p/ucpio://
  312. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
  313. [cpio]
  314. Shell=.cpio
  315. ShellIgnoreCase=true
  316. Include=cpio
  317. [initrd]
  318. Regex=^(initramfs.*\\.img|initrd(-.+)?\\.img(-.+)?)$
  319. Include=cpio
  320. [7zip]
  321. Shell=.7z
  322. ShellIgnoreCase=true
  323. Open=%cd %p/u7z://
  324. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
  325. [patch]
  326. Regex=\\.(diff|patch)$
  327. Open=%cd %p/patchfs://
  328. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
  329. [patch.gz]
  330. Regex=\\.(diff|patch)\\.(gz|Z)$
  331. Open=%cd %p/patchfs://
  332. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  333. [patch.bz2]
  334. Regex=\\.(diff|patch)\\.bz2$
  335. Open=%cd %p/patchfs://
  336. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  337. [patch.xz]
  338. Regex=\\.(diff|patch)\\.xz$
  339. Open=%cd %p/patchfs://
  340. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  341. [patch.zst]
  342. Regex=\\.(diff|patch)\\.zst$
  343. Open=%cd %p/patchfs://
  344. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
  345. [ls-lR]
  346. Regex=(^|\\.)ls-?lR(\\.gz|Z|bz2)$
  347. Open=%cd %p/lslR://
  348. [trpm]
  349. Shell=.trpm
  350. Open=%cd %p/trpm://
  351. View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
  352. # RPM packages (SuSE uses *.spm for source packages)
  353. [src.rpm]
  354. Regex=\\.(src\\.rpm|spm)$
  355. Open=%cd %p/rpm://
  356. View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
  357. [rpm]
  358. Shell=.rpm
  359. Open=%cd %p/rpm://
  360. View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
  361. [deb]
  362. Regex=\\.u?deb$
  363. Open=%cd %p/deb://
  364. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
  365. [dpkg]
  366. Shell=.debd
  367. Open=%cd %p/debd://
  368. View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
  369. [apt]
  370. Shell=.deba
  371. Open=%cd %p/deba://
  372. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
  373. [ISO9660]
  374. Shell=.iso
  375. ShellIgnoreCase=true
  376. Open=%cd %p/iso9660://
  377. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
  378. [ar]
  379. Regex=\\.s?a$
  380. Open=%cd %p/uar://
  381. #Open=%view{ascii} ar tv %f
  382. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
  383. [gplib]
  384. Shell=.lib
  385. ShellIgnoreCase=true
  386. Open=%cd %p/ulib://
  387. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
  388. ### Sources ###
  389. [C/C++]
  390. Regex=\\.(c|cc|cpp|cxx|c\\+\\+)$
  391. RegexIgnoreCase=true
  392. Include=editor
  393. [C/C++ header]
  394. Regex=\\.(h|hh|hpp|hxx|h\\+\\+)$
  395. RegexIgnoreCase=true
  396. Include=editor
  397. [Fortran]
  398. Shell=.f
  399. ShellIgnoreCase=true
  400. Include=editor
  401. [Assembler]
  402. Regex=\\.(s|asm)$
  403. RegexIgnoreCase=true
  404. Include=editor
  405. [Typescript]
  406. Shell=.ts
  407. ShellIgnoreCase=true
  408. Type=^Java source
  409. Include=editor
  410. # .so libraries
  411. [so]
  412. Regex=\\.(so|so\\.[0-9\\.]*)$
  413. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
  414. # .dylib libraries
  415. [dylib]
  416. Regex=\\.(dylib|dylib\\.[0-9\\.]*)$
  417. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
  418. ### Documentation ###
  419. #[Texinfo]
  420. #Regex=\\.(te?xi|texinfo)$
  421. [info-by-shell]
  422. Shell=.info
  423. Open=@EXTHELPERSDIR@/text.sh open info
  424. # Exception: .3gp are video files, not manual pages
  425. [3gp]
  426. Shell=.3gp
  427. ShellIgnoreCase=true
  428. Type=^ISO Media.*3GPP
  429. Include=video
  430. # Troff with me macros.
  431. # Exception - "read.me" is not a nroff file.
  432. [read.me]
  433. Shell=read.me
  434. Open=
  435. View=
  436. [troff]
  437. Shell=.me
  438. Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
  439. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
  440. [roff with ms macros]
  441. Shell=.ms
  442. Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
  443. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
  444. # Manual page
  445. [man.lz]
  446. Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz$
  447. Open=@EXTHELPERSDIR@/text.sh open man.lz %var{PAGER:more}
  448. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz %var{PAGER:more}
  449. [man.lz4]
  450. Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz4$
  451. Open=@EXTHELPERSDIR@/text.sh open man.lz4 %var{PAGER:more}
  452. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz4 %var{PAGER:more}
  453. [man.lzma]
  454. Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzma$
  455. Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
  456. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
  457. [man.lzo]
  458. Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzo$
  459. Open=@EXTHELPERSDIR@/text.sh open man.lzo %var{PAGER:more}
  460. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzo %var{PAGER:more}
  461. [man.xz]
  462. Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.xz$
  463. Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
  464. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
  465. [man.zst]
  466. Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.zst$
  467. Open=@EXTHELPERSDIR@/text.sh open man.zst %var{PAGER:more}
  468. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.zst %var{PAGER:more}
  469. # Perl pod page
  470. [pod]
  471. Shell=.pod
  472. Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
  473. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
  474. [chm]
  475. Shell=.chm
  476. ShellIgnoreCase=true
  477. Open=@EXTHELPERSDIR@/text.sh open chm
  478. ### Images ###
  479. [xcf]
  480. Shell=.xcf
  481. Open=@EXTHELPERSDIR@/image.sh open xcf
  482. [xbm]
  483. Shell=.xbm
  484. Open=@EXTHELPERSDIR@/image.sh open xbm
  485. [xpm]
  486. Shell=.xpm
  487. Include=image
  488. [ico]
  489. Shell=.ico
  490. Include=image
  491. [svg]
  492. Shell=.svg
  493. ShellIgnoreCase=true
  494. View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
  495. Open=@EXTHELPERSDIR@/image.sh open svg
  496. [webp]
  497. Shell=.webp
  498. View=%view{ascii} @EXTHELPERSDIR@/image.sh view webp
  499. Open=@EXTHELPERSDIR@/image.sh open webp
  500. [avif]
  501. Shell=.avif
  502. View=%view{ascii} @EXTHELPERSDIR@/image.sh view avif
  503. Open=@EXTHELPERSDIR@/image.sh open avif
  504. ### Sound files ###
  505. [sound]
  506. Regex=\\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$
  507. RegexIgnoreCase=true
  508. Open=@EXTHELPERSDIR@/sound.sh open common
  509. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view common
  510. [mod]
  511. Regex=\\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
  512. RegexIgnoreCase=true
  513. Open=@EXTHELPERSDIR@/sound.sh open mod
  514. [wav22]
  515. Shell=.waw22
  516. ShellIgnoreCase=true
  517. Open=@EXTHELPERSDIR@/sound.sh open wav22
  518. [mp3]
  519. Shell=.mp3
  520. ShellIgnoreCase=true
  521. Open=@EXTHELPERSDIR@/sound.sh open mp3
  522. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
  523. [ogg]
  524. Regex=\\.og[gax]$
  525. RegexIgnoreCase=true
  526. Open=@EXTHELPERSDIR@/sound.sh open ogg
  527. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
  528. [opus]
  529. Shell=.opus
  530. ShellIgnoreCase=true
  531. Open=@EXTHELPERSDIR@/sound.sh open opus
  532. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view opus
  533. [midi]
  534. Regex=\\.(midi?|rmid?)$
  535. RegexIgnoreCase=true
  536. Open=@EXTHELPERSDIR@/sound.sh open midi
  537. [wma]
  538. Shell=.wma
  539. ShellIgnoreCase=true
  540. Open=@EXTHELPERSDIR@/sound.sh open wma
  541. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
  542. # Play list
  543. [playlist]
  544. Regex=\\.(m3u|pls)$
  545. RegexIgnoreCase=true
  546. Open=@EXTHELPERSDIR@/sound.sh open playlist
  547. ### Video ###
  548. [avi]
  549. Shell=.avi
  550. ShellIgnoreCase=true
  551. Include=video
  552. [asf]
  553. Regex=\\.as[fx]$
  554. RegexIgnoreCase=true
  555. Include=video
  556. [divx]
  557. Shell=.divx
  558. ShellIgnoreCase=true
  559. Include=video
  560. [mkv]
  561. Shell=.mkv
  562. ShellIgnoreCase=true
  563. Include=video
  564. [mov]
  565. Regex=\\.(mov|qt)$
  566. RegexIgnoreCase=true
  567. Include=video
  568. [mp4]
  569. Regex=\\.(mp4|m4v|mpe?g)$
  570. RegexIgnoreCase=true
  571. Include=video
  572. # MPEG-2 TS container + H.264 codec
  573. [mts]
  574. Shell=.mts
  575. ShellIgnoreCase=true
  576. Include=video
  577. [ts]
  578. Shell=.ts
  579. ShellIgnoreCase=true
  580. Include=video
  581. [bob]
  582. Shell=.vob
  583. ShellIgnoreCase=true
  584. Include=video
  585. [wmv]
  586. Shell=.wmv
  587. ShellIgnoreCase=true
  588. Include=video
  589. [fli]
  590. Regex=\\.fl[icv]$
  591. RegexIgnoreCase=true
  592. Include=video
  593. [ogv]
  594. Shell=.ogv
  595. ShellIgnoreCase=true
  596. Include=video
  597. [realaudio]
  598. Regex=\\.ra?m$
  599. RegexIgnoreCase=true
  600. Open=@EXTHELPERSDIR@/video.sh open ram
  601. [webm-by-shell]
  602. Shell=.webm
  603. ShellIgnoreCase=true
  604. Include=video
  605. ### Documents ###
  606. [html]
  607. Regex=\\.s?html?$
  608. RegexIgnoreCase=true
  609. Open=@EXTHELPERSDIR@/web.sh open html
  610. View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
  611. [StarOffice-5.2]
  612. Shell=.sdw
  613. ShellIgnoreCase=true
  614. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  615. # StarOffice 6 and OpenOffice.org formats
  616. [OpenOffice.org]
  617. 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)$
  618. RegexIgnoreCase=true
  619. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  620. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
  621. [AbiWord]
  622. Shell=.abw
  623. ShellIgnoreCase=true
  624. Open=@EXTHELPERSDIR@/doc.sh open abw
  625. [Gnumeric]
  626. Shell=.gnumeric
  627. ShellIgnoreCase=true
  628. Open=@EXTHELPERSDIR@/doc.sh open gnumeric
  629. [rtf]
  630. Shell=.rtf
  631. ShellIgnoreCase=true
  632. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  633. # Microsoft Word Document
  634. [msdoc-by-shell]
  635. Regex=\\.(do[ct]|wri|docx)$
  636. RegexIgnoreCase=true
  637. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  638. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  639. # Microsoft Excel Worksheet
  640. [msxls-by-shell]
  641. Regex=\\.(xl[sw]|xlsx)$
  642. RegexIgnoreCase=true
  643. Open=@EXTHELPERSDIR@/doc.sh open msxls
  644. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  645. # Microsoft PowerPoint Presentation
  646. [msppt]
  647. Regex=\\.(pp[ts]|pptx)$
  648. RegexIgnoreCase=true
  649. Open=@EXTHELPERSDIR@/doc.sh open msppt
  650. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt
  651. [dvi]
  652. Shell=.dvi
  653. ShellIgnoreCase=true
  654. Open=@EXTHELPERSDIR@/doc.sh open dvi
  655. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
  656. [tex]
  657. Shell=.tex
  658. ShellIgnoreCase=true
  659. Include=editor
  660. [markdown]
  661. Regex=\\.mk?d$
  662. RegexIgnoreCase=true
  663. Include=editor
  664. [djvu]
  665. Regex=\\.djvu?$
  666. RegexIgnoreCase=true
  667. Open=@EXTHELPERSDIR@/doc.sh open djvu
  668. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
  669. # Comic Books
  670. [cbr]
  671. Regex=\\.cb[zr]$
  672. RegexIgnoreCase=true
  673. Open=@EXTHELPERSDIR@/doc.sh open comic
  674. # Epup, mobi, fb2
  675. [ebook]
  676. Regex=\\.(epub|mobi|fb2)$
  677. RegexIgnoreCase=true
  678. Open=@EXTHELPERSDIR@/doc.sh open ebook
  679. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ebook
  680. ### Miscellaneous ###
  681. # Compiled Java classes
  682. [javaclass]
  683. Shell=.class
  684. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass
  685. [Imakefile]
  686. Shell=Imakefile
  687. Open=xmkmf -a
  688. # Makefile.PL (MakeMaker)
  689. [Makefile.pl]
  690. Regex=^Makefile\\.(PL|pl)$
  691. Open=%var{PERL:perl} %f
  692. [Makefile]
  693. Regex=^[Mm]akefile$
  694. Open=make -f %f %{Enter parameters}
  695. [dbf]
  696. Shell=.dbf
  697. ShellIgnoreCase=true
  698. Open=@EXTHELPERSDIR@/misc.sh open dbf
  699. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
  700. # REXX script
  701. [rexx]
  702. Regex=\\.(rexx?|cmd)$
  703. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  704. # Disk images for Commodore computers (VIC20, C64, C128)
  705. [d64]
  706. Shell=.d64
  707. ShellIgnoreCase=true
  708. Open=%cd %p/uc1541://
  709. View=%view{ascii} c1541 %f -list
  710. # Glade, a user interface designer for GTK+ and GNOME
  711. [glade]
  712. Shell=.glade
  713. ShellIgnoreCase=true
  714. Open=@EXTHELPERSDIR@/misc.sh open glade
  715. # Gettext Catalogs
  716. [mo]
  717. Regex=\\.g?mo$
  718. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
  719. [po]
  720. Shell=.po
  721. Open=@EXTHELPERSDIR@/misc.sh open po
  722. [lyx]
  723. Shell=.lyx
  724. ShellIgnoreCase=true
  725. Open=@EXTHELPERSDIR@/misc.sh open lyx
  726. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
  727. [torrent]
  728. Shell=.torrent
  729. ShellIgnoreCase=true
  730. Open=%cd %p/torrent://
  731. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
  732. ### Plain compressed files ###
  733. [ace]
  734. Shell=.ace
  735. ShellIgnoreCase=true
  736. Open=%cd %p/uace://
  737. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
  738. [arc]
  739. Shell=.arc
  740. ShellIgnoreCase=true
  741. Open=%cd %p/uarc://
  742. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
  743. [zip-by-shell]
  744. Shell=.zip
  745. ShellIgnoreCase=true
  746. Open=%cd %p/uzip://
  747. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  748. [zoo]
  749. Shell=.zoo
  750. ShellIgnoreCase=true
  751. Open=%cd %p/uzoo://
  752. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
  753. [lz4]
  754. Shell=.lz4
  755. ShellIgnoreCase=true
  756. Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more}
  757. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4
  758. [lzo]
  759. Shell=.lzo
  760. ShellIgnoreCase=true
  761. Open=@EXTHELPERSDIR@/archive.sh view lzo %var{PAGER:more}
  762. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzo
  763. [wim]
  764. Shell=.wim
  765. ShellIgnoreCase=true
  766. Open=%cd %p/uwim://
  767. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim
  768. ######### Files by Type #########
  769. ### Archives ###
  770. [mailbox]
  771. Type=^ASCII mail text
  772. Open=%cd %p/mailfs://
  773. [ipk-deb]
  774. Shell=.ipk
  775. Type=^Debian binary package
  776. Open=%cd %p/deb://
  777. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
  778. [ipk-openwrt]
  779. Shell=.ipk
  780. Type=\\(gzip compressed
  781. Include=tar.gz
  782. [squashfs]
  783. Type=^Squashfs filesystem
  784. Open=%cd %p/usqfs://
  785. View=%view{ascii} unsquashfs -stat %f ; unsquashfs -lls -d "" %f
  786. ### Sources ###
  787. # Object
  788. [elf]
  789. Type=^ELF
  790. #Open=%var{PAGER:more} %f
  791. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
  792. [Mach-O]
  793. Type=^Mach-O
  794. #Open=%var{PAGER:more} %f
  795. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
  796. ### Documentation ###
  797. # GNU Info page
  798. [info-by-type]
  799. Type=^Info text
  800. Open=@EXTHELPERSDIR@/text.sh open info
  801. # Manual page - compressed
  802. [troff.gz]
  803. Type=troff.*gzip compressed
  804. Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
  805. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
  806. [troff.bzip]
  807. Type=troff.*bzip compressed
  808. Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
  809. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
  810. [troff.bzip2]
  811. Type=troff.*bzip2 compressed
  812. Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
  813. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
  814. # Manual page
  815. [man]
  816. Type=troff or preprocessor input
  817. Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
  818. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
  819. ### Images ###
  820. [gif]
  821. Type=^GIF
  822. Include=image
  823. [jpeg]
  824. Type=^JPEG
  825. Include=image
  826. [bitmap]
  827. Type=^PC bitmap
  828. Include=image
  829. [png]
  830. Type=^PNG
  831. Include=image
  832. [jng]
  833. Type=^JNG
  834. Include=image
  835. [mng]
  836. Type=^MNG
  837. Include=image
  838. [tiff]
  839. Type=^TIFF
  840. Include=image
  841. [rbm]
  842. Type=^PBM
  843. Include=image
  844. [pgm]
  845. Type=^PGM
  846. Include=image
  847. [ppm]
  848. Type=^PPM
  849. Include=image
  850. [netpbm]
  851. Type=^Netpbm
  852. Include=image
  853. ### Video ###
  854. [webm-by-type]
  855. Type=WebM
  856. Include=video
  857. ### Documents ###
  858. [postscript]
  859. Type=^PostScript
  860. Open=@EXTHELPERSDIR@/doc.sh open ps
  861. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
  862. [pdf]
  863. Type=^PDF
  864. Open=@EXTHELPERSDIR@/doc.sh open pdf
  865. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
  866. # Microsoft Word Document
  867. [msdoc-by-type]
  868. Type=^Microsoft Word
  869. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  870. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  871. # Microsoft Excel Worksheet
  872. [msxls-by-type]
  873. Type=^Microsoft Excel
  874. Open=@EXTHELPERSDIR@/doc.sh open msxls
  875. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  876. # Use OpenOffice.org/LibreOffice to open any MS Office documents
  877. [mso-doc-1]
  878. Type=^Microsoft Office Document
  879. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  880. [mso-doc-2]
  881. Type=^Microsoft OOXML
  882. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  883. [framemaker]
  884. Type=^FrameMaker
  885. Open=@EXTHELPERSDIR@/doc.sh open framemaker
  886. ### Miscellaneous ###
  887. [sqlite3.db]
  888. Type=^SQLite 3.x database
  889. Open=@EXTHELPERSDIR@/misc.sh open sqlite
  890. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
  891. ### Plain compressed files ###
  892. [gzip]
  893. Type=\\(gzip compressed
  894. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  895. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  896. [bzip]
  897. Type=\\(bzip compressed
  898. Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
  899. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
  900. [bzip2]
  901. Type=\\(bzip2 compressed
  902. Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
  903. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  904. [compress]
  905. Type=\\(compress'd
  906. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  907. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  908. [lz]
  909. Type=\\(lzip compressed
  910. Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
  911. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
  912. [lzma]
  913. Type=\\(LZMA compressed
  914. Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
  915. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
  916. [xz]
  917. Type=\\(XZ compressed
  918. Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
  919. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  920. [zstd]
  921. Type=\\(Zstandard compressed
  922. Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more}
  923. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
  924. [zip-by-type]
  925. Type=\\(Zip archive
  926. Open=%cd %p/uzip://
  927. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  928. [jar]
  929. Type=\\(Java (Jar file|archive) data \\((zip|JAR)\\)\\)
  930. TypeIgnoreCase=true
  931. Open=%cd %p/uzip://
  932. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  933. [lha]
  934. Type=^LHa .*archive
  935. Open=%cd %p/ulha://
  936. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
  937. [pak]
  938. Type=^PAK .*archive
  939. Open=%cd %p/unar://
  940. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak
  941. # Parity Archive
  942. [par2]
  943. Type=^Parity Archive Volume Set
  944. Open=@EXTHELPERSDIR@/archive.sh open par2
  945. ######### Includes #########
  946. # Includes should be at end of the bindings
  947. [Include/tar.gz]
  948. Open=%cd %p/utar://
  949. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
  950. [Include/cpio]
  951. Open=%cd %p/ucpio://
  952. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
  953. [Include/editor]
  954. Open=%var{EDITOR:vi} %f
  955. [Include/image]
  956. Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
  957. View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
  958. [Include/video]
  959. Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
  960. View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
  961. ######### Default #########
  962. # Default target for anything not described above
  963. [Default]
  964. Open=
  965. View=
  966. ### EOF ###