mc.ext.ini.in 27 KB

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