mc.ext.ini.in 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170
  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. [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=\\.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. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
  731. ### Plain compressed files ###
  732. [ace]
  733. Shell=.ace
  734. ShellIgnoreCase=true
  735. Open=%cd %p/uace://
  736. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
  737. [arc]
  738. Shell=.arc
  739. ShellIgnoreCase=true
  740. Open=%cd %p/uarc://
  741. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
  742. [zip-by-shell]
  743. Shell=.zip
  744. ShellIgnoreCase=true
  745. Open=%cd %p/uzip://
  746. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  747. [zoo]
  748. Shell=.zoo
  749. ShellIgnoreCase=true
  750. Open=%cd %p/uzoo://
  751. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
  752. [lz4]
  753. Shell=.lz4
  754. ShellIgnoreCase=true
  755. Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more}
  756. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4
  757. [lzo]
  758. Shell=.lzo
  759. ShellIgnoreCase=true
  760. Open=@EXTHELPERSDIR@/archive.sh view lzo %var{PAGER:more}
  761. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzo
  762. [wim]
  763. Shell=.wim
  764. ShellIgnoreCase=true
  765. Open=%cd %p/uwim://
  766. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim
  767. ######### Files by Type #########
  768. ### Archives ###
  769. [mailbox]
  770. Type=^ASCII mail text
  771. Open=%cd %p/mailfs://
  772. ### Sources ###
  773. # Object
  774. [elf]
  775. Type=^ELF
  776. #Open=%var{PAGER:more} %f
  777. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
  778. [Mach-O]
  779. Type=^Mach-O
  780. #Open=%var{PAGER:more} %f
  781. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
  782. ### Documentation ###
  783. # GNU Info page
  784. [info-by-type]
  785. Type=^Info text
  786. Open=@EXTHELPERSDIR@/text.sh open info
  787. # Manual page - compressed
  788. [troff.gz]
  789. Type=troff.*gzip compressed
  790. Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
  791. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
  792. [troff.bzip]
  793. Type=troff.*bzip compressed
  794. Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
  795. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
  796. [troff.bzip2]
  797. Type=troff.*bzip2 compressed
  798. Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
  799. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
  800. # Manual page
  801. [man]
  802. Type=troff or preprocessor input
  803. Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
  804. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
  805. ### Images ###
  806. [gif]
  807. Type=^GIF
  808. Include=image
  809. [jpeg]
  810. Type=^JPEG
  811. Include=image
  812. [bitmap]
  813. Type=^PC bitmap
  814. Include=image
  815. [png]
  816. Type=^PNG
  817. Include=image
  818. [jng]
  819. Type=^JNG
  820. Include=image
  821. [mng]
  822. Type=^MNG
  823. Include=image
  824. [tiff]
  825. Type=^TIFF
  826. Include=image
  827. [rbm]
  828. Type=^PBM
  829. Include=image
  830. [pgm]
  831. Type=^PGM
  832. Include=image
  833. [ppm]
  834. Type=^PPM
  835. Include=image
  836. [netpbm]
  837. Type=^Netpbm
  838. Include=image
  839. ### Video ###
  840. [webm-by-type]
  841. Type=WebM
  842. Include=video
  843. ### Documents ###
  844. [postscript]
  845. Type=^PostScript
  846. Open=@EXTHELPERSDIR@/doc.sh open ps
  847. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
  848. [pdf]
  849. Type=^PDF
  850. Open=@EXTHELPERSDIR@/doc.sh open pdf
  851. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
  852. # Microsoft Word Document
  853. [msdoc-by-type]
  854. Type=^Microsoft Word
  855. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  856. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  857. # Microsoft Excel Worksheet
  858. [msxls-by-type]
  859. Type=^Microsoft Excel
  860. Open=@EXTHELPERSDIR@/doc.sh open msxls
  861. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  862. # Use OpenOffice.org/LibreOffice to open any MS Office documents
  863. [mso-doc-1]
  864. Type=^Microsoft Office Document
  865. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  866. [mso-doc-2]
  867. Type=^Microsoft OOXML
  868. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  869. [framemaker]
  870. Type=^FrameMaker
  871. Open=@EXTHELPERSDIR@/doc.sh open framemaker
  872. ### Miscellaneous ###
  873. [sqlite3.db]
  874. Type=^SQLite 3.x database
  875. Open=@EXTHELPERSDIR@/misc.sh open sqlite
  876. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
  877. ### Plain compressed files ###
  878. [gzip]
  879. Type=\\(gzip compressed
  880. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  881. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  882. [bzip]
  883. Type=\\(bzip compressed
  884. Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
  885. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
  886. [bzip2]
  887. Type=\\(bzip2 compressed
  888. Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
  889. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  890. [compress]
  891. Type=\\(compress'd
  892. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  893. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  894. [lz]
  895. Type=\\(lzip compressed
  896. Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
  897. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
  898. [lzma]
  899. Type=\\(LZMA compressed
  900. Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
  901. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
  902. [xz]
  903. Type=\\(XZ compressed
  904. Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
  905. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  906. [zstd]
  907. Type=\\(Zstandard compressed
  908. Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more}
  909. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
  910. [zip-by-type]
  911. Type=\\(Zip archive
  912. Open=%cd %p/uzip://
  913. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  914. [jar]
  915. Type=\\(Java (Jar file|archive) data \\((zip|JAR)\\)\\)
  916. TypeIgnoreCase=true
  917. Open=%cd %p/uzip://
  918. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  919. [lha]
  920. Type=^LHa .*archive
  921. Open=%cd %p/ulha://
  922. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
  923. [pak]
  924. Type=^PAK .*archive
  925. Open=%cd %p/unar://
  926. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak
  927. # Parity Archive
  928. [par2]
  929. Type=^Parity Archive Volume Set
  930. Open=@EXTHELPERSDIR@/archive.sh open par2
  931. ######### Includes #########
  932. # Includes should be at end of the bindings
  933. [Include/tar.gz]
  934. Open=%cd %p/utar://
  935. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
  936. [Include/cpio]
  937. Open=%cd %p/ucpio://
  938. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
  939. [Include/editor]
  940. Open=%var{EDITOR:vi} %f
  941. [Include/image]
  942. Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
  943. View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
  944. [Include/video]
  945. Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
  946. View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
  947. ######### Default #########
  948. # Default target for anything not described above
  949. [Default]
  950. Open=
  951. View=
  952. ### EOF ###