Refactor learn keys.
[midnight-commander.git] / misc / mc.ext.ini.in
blob3d961a95ce896be8595d5cbd4d5e1df09e624351
1 # Midnight Commander 4.0 extension file
3 # Warning: The structure of this file has been completely changed with the version 4.0!
5 # All lines starting with # or empty lines are ignored.
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.
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.
20 # Section [mc.ext.ini] is mandatory. It contains file metadata.
21 # "Version" parameter is mandatory. It contains the file format version.
23 # Section [Default] is optional. It is applied only if no other match was found.
25 # Sections like [Include/xxxx] can be referenced as "Include=xxxx" from other sections.
26 # Section [Include/xxxx] can be located as before as after sections that point to it.
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.
32 # [Default] should be a catch-all action and come last.
34 # A section describing a file can contain following keys:
36 # File descriptions:
38 # Directory
39 # Matches any directory matching regular expression.
40 # Always case sensitive.
41 # This key has the highest priority over other keys. If this key is in a section,
42 # other keys are ignored.
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).
50 # TypeIgnoreCase [true|false]
51 # Defines whether the Type value is case sensitive or not.
52 # If absent, Type is case sensitive.
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 ( ).
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.
64 # Example:
65 # Regex=\\.t(ar\\.lzma|lz)$
66 # matches *.tar.lzma or *.tlz.
68 # RegexIgnoreCase [true|false]
69 # Defines whether the Regex value is case sensitive or not.
70 # If absent, Regex is case sensitive.
72 # Shell
73 # Describes an extension when starting with a dot (no wildcards).
75 # Example:
76 # Shell=.tar
77 # matches *.tar.
79 # If it doesn't start with a dot, it matches only a file of that name.
81 # If both keys Regex and Shell are in the same section, Regex is used
82 # and Shell is ignored.
84 # ShellIgnoreCase [true|false]
85 # Defines whether the Shell value is case sensitive or not.
86 # If absent, Shell is case sensitive.
88 # Include
89 # Reference to another section.
91 # Example:
92 # Include=video
93 # points to the [Include/video] section.
95 # Commands:
97 # Open
98 # Execute the command if the user presses Enter or doubleclicks it.
100 # View
101 # Execute the command if the user presses F3.
103 # Edit
104 # Execute the command if the user presses F4.
106 # All commands are ignored if the section contains the Include key.
108 # Command is any one-line shell command, with the following substitutions:
110 # %%
111 # The % character
113 # %p
114 # Name of the current file without the path.
115 # Also provided to the external application as MC_EXT_BASENAME environment variable.
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.
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.
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.
135 # %t
136 # List of the tagged files.
137 # Also provided to the external application as MC_EXT_ONLYTAGGED environment variable.
139 # %u
140 # List of the tagged files (they will be untaged after the command is executed).
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.)
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.
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).
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)
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.
166 # Section can contain both Type and Regex or Type and Shell keys. In this case
167 # they are handled as an AND condition.
169 # Example:
170 # Shell=.3gp
171 # Type=^ISO Media.*3GPP
173 # matches *.3gp files for which `file` output is a line starting with "ISO Media"
174 # and containing "3GPP".
176 # If there are more than one keys with the same name in a section, the last key will be used.
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.
183 ### Changes ###
185 # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com>
186 # 2021-03-28 Andrew Borodin <aborodin@vmail.ru>
187 # 2021-08-24 Tomas Szepe <szepe@pinerecords.com>
188 # 2022-09-11 Andrew Borodin <aborodin@vmail.ru>: port to INI format.
190 [mc.ext.ini]
191 Version=4.0
193 ### GIT Repo ###
194 [gitfs changeset]
195 Regex=^\\[git\\]
196 Open=%cd %p/changesetfs://
197 View=%cd %p/patchsetfs://
199 ### Archives ###
200 # Since we use "file -z", we should use Regex and Shell first, then Type.
203 ######### Files by name (Regex and Shell) #########
205 # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
206 [tar.gzip]
207 Regex=\\.t([gp]?z|ar\\.g?[zZ])$
208 Include=tar.gz
210 [ipk]
211 Shell=.ipk
212 Include=tar.gz
214 [gem]
215 Shell=.gem
216 Include=tar.gz
218 [tar.bzip]
219 Shell=.tar.bz
220 # Open=%cd %p/utar://
221 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip
223 [tar.bzip2]
224 Regex=\\.t(ar\\.bz2|bz2?|b2)$
225 Open=%cd %p/utar://
226 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2
228 # .tar.lzma, .tlz
229 [tar.lzma]
230 Regex=\\.t(ar\\.lzma|lz)$
231 Open=%cd %p/utar://
232 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma
234 [tar.lz]
235 Shell=.tar.lz
236 Open=%cd %p/utar://
237 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz
239 # .tar.lz4, .tlz4
240 [tar.lz4]
241 Regex=\\.t(ar\\.lz4|lz4)$
242 Open=%cd %p/utar://
243 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz4
245 # .tar.lzo, .tzo
246 [tar.lzo]
247 Regex=\\.t(ar\\.lzo|zo)$
248 Open=%cd %p/utar://
249 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzo
251 # .tar.xz, .txz
252 [tar.xz]
253 Regex=\\.t(ar\\.xz|xz)$
254 Open=%cd %p/utar://
255 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
257 # .tar.zst, .tzst
258 [tar.zst]
259 Regex=\\.t(ar\\.zst|zst)$
260 Open=%cd %p/utar://
261 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.zst
263 # .tar.F - used on QNX
264 [tar.F]
265 Shell=.tar.F
266 # Open=%cd %p/utar://
267 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
269 # .qpr/.qpk - QNX Neutrino package installer files
270 [tar.qpr]
271 Regex=\\.qp[rk]$
272 Open=%cd %p/utar://
273 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
275 [tar]
276 Shell=.tar
277 ShellIgnoreCase=true
278 Open=%cd %p/utar://
279 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
281 [arj]
282 Regex=\\.a(rj|[0-9][0-9])$
283 RegexIgnoreCase=true
284 Open=%cd %p/uarj://
285 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
287 [cab]
288 Shell=.cab
289 ShellIgnoreCase=true
290 Open=%cd %p/ucab://
291 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
293 [ha]
294 Shell=.ha
295 ShellIgnoreCase=true
296 Open=%cd %p/uha://
297 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
299 [rar]
300 Regex=\\.r(ar|[0-9][0-9])$
301 RegexIgnoreCase=true
302 Open=%cd %p/urar://
303 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
305 # ALZip
306 [alz]
307 Shell=.alz
308 ShellIgnoreCase=true
309 Open=%cd %p/ualz://
310 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
312 [cpio.Z]
313 Shell=.cpio.Z
314 Open=%cd %p/ucpio://
315 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
317 [cpio.lz]
318 Shell=.cpio.lz
319 Open=%cd %p/ucpio://
320 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz
322 [cpio.lz4]
323 Shell=.cpio.lz4
324 Open=%cd %p/ucpio://
325 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz4
327 [cpio.lzo]
328 Shell=.cpio.lzo
329 Open=%cd %p/ucpio://
330 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lzo
332 [cpio.xz]
333 Shell=.cpio.xz
334 Open=%cd %p/ucpio://
335 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
337 [cpio.zst]
338 Shell=.cpio.zst
339 Open=%cd %p/ucpio://
340 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.zst
342 [cpio.gz]
343 Shell=.cpio.gz
344 Open=%cd %p/ucpio://
345 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
347 [cpio]
348 Shell=.cpio
349 ShellIgnoreCase=true
350 Include=cpio
352 [initrd]
353 Regex=^(initramfs.*\\.img|initrd(-.+)?\\.img(-.+)?)$
354 Include=cpio
356 [7zip]
357 Shell=.7z
358 ShellIgnoreCase=true
359 Open=%cd %p/u7z://
360 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
362 [patch]
363 Regex=\\.(diff|patch)$
364 Open=%cd %p/patchfs://
365 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
367 [patch.gz]
368 Regex=\\.(diff|patch)\\.(gz|Z)$
369 Open=%cd %p/patchfs://
370 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
372 [patch.bz2]
373 Regex=\\.(diff|patch)\\.bz2$
374 Open=%cd %p/patchfs://
375 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
377 [patch.xz]
378 Regex=\\.(diff|patch)\\.xz$
379 Open=%cd %p/patchfs://
380 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
382 [patch.zst]
383 Regex=\\.(diff|patch)\\.zst$
384 Open=%cd %p/patchfs://
385 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
387 [ls-lR]
388 Regex=(^|\\.)ls-?lR(\\.gz|Z|bz2)$
389 Open=%cd %p/lslR://
391 [trpm]
392 Shell=.trpm
393 Open=%cd %p/trpm://
394 View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
396 # RPM packages (SuSE uses *.spm for source packages)
397 [src.rpm]
398 Regex=\\.(src\\.rpm|spm)$
399 Open=%cd %p/rpm://
400 View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
402 [rpm]
403 Shell=.rpm
404 Open=%cd %p/rpm://
405 View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
407 [deb]
408 Regex=\\.u?deb$
409 Open=%cd %p/deb://
410 View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
412 [dpkg]
413 Shell=.debd
414 Open=%cd %p/debd://
415 View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
417 [apt]
418 Shell=.deba
419 Open=%cd %p/deba://
420 Ciew=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
422 [ISO9660]
423 Shell=.iso
424 ShellIgnoreCase=true
425 Open=%cd %p/iso9660://
426 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
428 [ar]
429 Regex=\\.s?a$
430 Open=%cd %p/uar://
431 #Open=%view{ascii} ar tv %f
432 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
434 [gplib]
435 Shell=.lib
436 ShellIgnoreCase=true
437 Open=%cd %p/ulib://
438 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
440 ### Sources ###
442 [C/C++]
443 Regex=\\.(c|cc|cpp|cxx|c\\+\\+)$
444 RegexIgnoreCase=true
445 Include=editor
447 [C/C++ header]
448 Regex=\\.(h|hh|hpp|hxx|h\\+\\+)$
449 RegexIgnoreCase=true
450 Include=editor
452 [Fortran]
453 Shell=.f
454 ShellIgnoreCase=true
455 Include=editor
457 [Assembler]
458 Regex=\\.(s|asm)$
459 RegexIgnoreCase=true
460 Include=editor
462 [Typescript]
463 Shell=.ts
464 ShellIgnoreCase=true
465 Type=^Java source
466 Include=editor
468 # .so libraries
469 [so]
470 Regex=\\.(so|so\\.[0-9\\.]*)$
471 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
473 # .dylib libraries
474 [dylib]
475 Regex=\\.(dylib|dylib\\.[0-9\\.]*)$
476 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
479 ### Documentation ###
481 #[Texinfo]
482 #Regex=\\.(te?xi|texinfo)$
484 [info-by-shell]
485 Shell=.info
486 Open=@EXTHELPERSDIR@/text.sh open info
488 # Exception: .3gp are video files, not manual pages
489 [3gp]
490 Shell=.3gp
491 ShellIgnoreCase=true
492 Type=^ISO Media.*3GPP
493 Include=video
495 # Troff with me macros.
496 # Exception - "read.me" is not a nroff file.
497 [read.me]
498 Shell=read.me
499 Open=
500 View=
502 [troff]
503 Shell=.me
504 Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
505 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
507 [roff with ms macros]
508 Shell=.ms
509 Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
510 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
512 # Manual page
514 [man.lz]
515 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz$
516 Open=@EXTHELPERSDIR@/text.sh open man.lz %var{PAGER:more}
517 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz %var{PAGER:more}
519 [man.lz4]
520 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz4$
521 Open=@EXTHELPERSDIR@/text.sh open man.lz4 %var{PAGER:more}
522 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz4 %var{PAGER:more}
524 [man.lzma]
525 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzma$
526 Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
527 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
529 [man.lzo]
530 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzo$
531 Open=@EXTHELPERSDIR@/text.sh open man.lzo %var{PAGER:more}
532 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzo %var{PAGER:more}
534 [man.xz]
535 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.xz$
536 Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
537 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
539 [man.zst]
540 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.zst$
541 Open=@EXTHELPERSDIR@/text.sh open man.zst %var{PAGER:more}
542 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.zst %var{PAGER:more}
544 # Perl pod page
545 [pod]
546 Shell=.pod
547 Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
548 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
550 [chm]
551 Shell=.chm
552 ShellIgnoreCase=true
553 Open=@EXTHELPERSDIR@/text.sh open chm
555 ### Images ###
557 [xcf]
558 Shell=.xcf
559 Open=@EXTHELPERSDIR@/image.sh open xcf
561 [xbm]
562 Shell=.xbm
563 Open=@EXTHELPERSDIR@/image.sh open xbm
565 [xpm]
566 Shell=.xpm
567 Include=image
569 [ico]
570 Shell=.ico
571 Include=image
573 [svg]
574 Shell=.svg
575 ShellIgnoreCase=true
576 View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
577 Open=@EXTHELPERSDIR@/image.sh open svg
579 [webp]
580 Shell=.webp
581 Open=@EXTHELPERSDIR@/image.sh open webp
584 ### Sound files ###
586 [sound]
587 Regex=\\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$
588 RegexIgnoreCase=true
589 Open=@EXTHELPERSDIR@/sound.sh open common
590 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view common
592 [mod]
593 Regex=\\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
594 RegexIgnoreCase=true
595 Open=@EXTHELPERSDIR@/sound.sh open mod
597 [wav22]
598 Shell=.waw22
599 ShellIgnoreCase=true
600 Open=@EXTHELPERSDIR@/sound.sh open wav22
602 [mp3]
603 Shell=.mp3
604 ShellIgnoreCase=true
605 Open=@EXTHELPERSDIR@/sound.sh open mp3
606 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
608 [ogg]
609 Regex=\\.og[gax]$
610 RegexIgnoreCase=true
611 Open=@EXTHELPERSDIR@/sound.sh open ogg
612 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
614 [opus]
615 Shell=.opus
616 ShellIgnoreCase=true
617 Open=@EXTHELPERSDIR@/sound.sh open opus
618 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view opus
620 [midi]
621 Regex=\\.(midi?|rmid?)$
622 RegexIgnoreCase=true
623 Open=@EXTHELPERSDIR@/sound.sh open midi
625 [wma]
626 Shell=.wma
627 ShellIgnoreCase=true
628 Open=@EXTHELPERSDIR@/sound.sh open wma
629 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
631 # Play list
632 [playlist]
633 Regex=\\.(m3u|pls)$
634 RegexIgnoreCase=true
635 Open=@EXTHELPERSDIR@/sound.sh open playlist
638 ### Video ###
640 [avi]
641 Shell=.avi
642 ShellIgnoreCase=true
643 Include=video
645 [asf]
646 Regex=\\.as[fx]$
647 RegexIgnoreCase=true
648 Include=video
650 [divx]
651 Shell=.divx
652 ShellIgnoreCase=true
653 Include=video
655 [mkv]
656 Shell=.mkv
657 ShellIgnoreCase=true
658 Include=video
660 [mov]
661 Regex=\\.(mov|qt)$
662 RegexIgnoreCase=true
663 Include=video
665 [mp4]
666 Regex=\\.(mp4|m4v|mpe?g)$
667 RegexIgnoreCase=true
668 Include=video
670 # MPEG-2 TS container + H.264 codec
671 [mts]
672 Shell=.mts
673 ShellIgnoreCase=true
674 Include=video
676 [ts]
677 Shell=.ts
678 ShellIgnoreCase=true
679 Include=video
681 [bob]
682 Shell=.vob
683 ShellIgnoreCase=true
684 Include=video
686 [wmv]
687 Shell=.wmv
688 ShellIgnoreCase=true
689 Include=video
691 [fli]
692 Regex=\\.fl[icv]$
693 RegexIgnoreCase=true
694 Include=video
696 [ogv]
697 Shell=.ogv
698 ShellIgnoreCase=true
699 Include=video
701 [realaudio]
702 Regex=\\.ra?m$
703 RegexIgnoreCase=true
704 Open=@EXTHELPERSDIR@/video.sh open ram
706 [webm-by-shell]
707 Shell=.webm
708 ShellIgnoreCase=true
709 Include=video
712 ### Documents ###
714 [html]
715 Regex=\\.html?$
716 RegexIgnoreCase=true
717 Open=@EXTHELPERSDIR@/web.sh open html
718 View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
720 [StarOffice-5.2]
721 Shell=.sdw
722 ShellIgnoreCase=true
723 Open=@EXTHELPERSDIR@/doc.sh open ooffice
725 # StarOffice 6 and OpenOffice.org formats
726 [OpenOffice.org]
727 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)$
728 RegexIgnoreCase=true
729 Open=@EXTHELPERSDIR@/doc.sh open ooffice
730 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
732 [AbiWord]
733 Shell=.abw
734 ShellIgnoreCase=true
735 Open=@EXTHELPERSDIR@/doc.sh open abw
737 [Gnumeric]
738 Shell=.gnumeric
739 ShellIgnoreCase=true
740 Open=@EXTHELPERSDIR@/doc.sh open gnumeric
742 [rtf]
743 Shell=.rtf
744 ShellIgnoreCase=true
745 Open=@EXTHELPERSDIR@/doc.sh open msdoc
747 # Microsoft Word Document
748 [msdoc-by-shell]
749 Regex=\\.(do[ct]|wri|docx)$
750 RegexIgnoreCase=true
751 Open=@EXTHELPERSDIR@/doc.sh open msdoc
752 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
754 # Microsoft Excel Worksheet
755 [msxls-by-shell]
756 Regex=\\.(xl[sw]|xlsx)$
757 RegexIgnoreCase=true
758 Open=@EXTHELPERSDIR@/doc.sh open msxls
759 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
761 # Microsoft PowerPoint Presentation
762 [msppt]
763 Regex=\\.(pp[ts]|pptx)$
764 RegexIgnoreCase=true
765 Open=@EXTHELPERSDIR@/doc.sh open msppt
766 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt
768 [dvi]
769 Shell=.dvi
770 ShellIgnoreCase=true
771 Open=@EXTHELPERSDIR@/doc.sh open dvi
772 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
774 [tex]
775 Shell=.tex
776 ShellIgnoreCase=true
777 Include=editor
779 [markdown]
780 Regex=\\.mk?d$
781 RegexIgnoreCase=true
782 Include=editor
784 [djvu]
785 Regex=\\.djvu?$
786 RegexIgnoreCase=true
787 Open=@EXTHELPERSDIR@/doc.sh open djvu
788 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
790 # Comic Books
791 [cbr]
792 Regex=\\.cb[zr]$
793 RegexIgnoreCase=true
794 Open=@EXTHELPERSDIR@/doc.sh open comic
796 # Epup, mobi, fb2
797 [ebook]
798 Regex=\\.(epub|mobi|fb2)$
799 RegexIgnoreCase=true
800 Open=@EXTHELPERSDIR@/doc.sh open ebook
801 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ebook
804 ### Miscellaneous ###
806 # Compiled Java classes
807 [javaclass]
808 Shell=.class
809 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass
811 [Imakefile]
812 Shell=Imakefile
813 Open=xmkmf -a
815 # Makefile.PL (MakeMaker)
816 [Makefile.pl]
817 Regex=^Makefile\\.(PL|pl)$
818 Open=%var{PERL:perl} %f
820 [Makefile]
821 Regex=^[Mm]akefile$
822 Open=make -f %f %{Enter parameters}
824 [dbf]
825 Shell=.dbf
826 ShellIgnoreCase=true
827 Open=@EXTHELPERSDIR@/misc.sh open dbf
828 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
830 # REXX script
831 [rexx]
832 Regex=\\.(rexx?|cmd)$
833 Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
835 # Disk images for Commodore computers (VIC20, C64, C128)
836 [d64]
837 Shell=.d64
838 ShellIgnoreCase=true
839 Open=%cd %p/uc1541://
840 View=%view{ascii} c1541 %f -list
842 # Glade, a user interface designer for GTK+ and GNOME
843 [glade]
844 Shell=.glade
845 ShellIgnoreCase=true
846 Open=@EXTHELPERSDIR@/misc.sh open glade
848 # Gettext Catalogs
849 [mo]
850 Regex=.g?mo$
851 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
853 [po]
854 Shell=.po
855 Open=@EXTHELPERSDIR@/misc.sh open po
857 [lyx]
858 Shell=.lyx
859 ShellIgnoreCase=true
860 Open=@EXTHELPERSDIR@/misc.sh open lyx
861 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
863 [torrent]
864 Shell=.torrent
865 ShellIgnoreCase=true
866 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
869 ### Plain compressed files ###
871 [ace]
872 Shell=.ace
873 ShellIgnoreCase=true
874 Open=%cd %p/uace://
875 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
877 [arc]
878 Shell=.arc
879 ShellIgnoreCase=true
880 Open=%cd %p/uarc://
881 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
883 [zip-by-shell]
884 Shell=.zip
885 ShellIgnoreCase=true
886 Open=%cd %p/uzip://
887 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
889 [zoo]
890 Shell=.zoo
891 ShellIgnoreCase=true
892 Open=%cd %p/uzoo://
893 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
895 [lz4]
896 Shell=.lz4
897 ShellIgnoreCase=true
898 Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more}
899 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4
901 [lzo]
902 Shell=.lzo
903 ShellIgnoreCase=true
904 Open=@EXTHELPERSDIR@/archive.sh view lzo %var{PAGER:more}
905 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzo
907 [wim]
908 Shell=.wim
909 ShellIgnoreCase=true
910 Open=%cd %p/uwim://
911 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim
914 ######### Files by Type #########
916 ### Archives ###
918 [mailbox]
919 Type=^ASCII\ mail\ text
920 Open=%cd %p/mailfs://
923 ### Sources ###
925 # Object
926 [elf]
927 Type=^ELF
928 #Open=%var{PAGER:more} %f
929 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
931 [Mach-O]
932 Type=^Mach-O
933 #Open=%var{PAGER:more} %f
934 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
936 ### Documentation ###
938 # GNU Info page
939 [info-by-type]
940 Type=^Info\ text
941 Open=@EXTHELPERSDIR@/text.sh open info
943 # Manual page - compressed
944 [troff.gz]
945 Type=troff.*gzip compressed
946 Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
947 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
949 [troff.bzip]
950 Type=troff.*bzip compressed
951 Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
952 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
954 [troff.bzip2]
955 Type=troff.*bzip2 compressed
956 Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
957 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
959 # Manual page
960 [man]
961 Type=troff or preprocessor input
962 Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
963 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
966 ### Images ###
968 [gif]
969 Type=^GIF
970 Include=image
972 [jpeg]
973 Type=^JPEG
974 Include=image
976 [bitmap]
977 Type=^PC\ bitmap
978 Include=image
980 [png]
981 Type=^PNG
982 Include=image
984 [jng]
985 Type=^JNG
986 Include=image
988 [mng]
989 Type=^MNG
990 Include=image
992 [tiff]
993 Type=^TIFF
994 Include=image
996 [rbm]
997 Type=^PBM
998 Include=image
1000 [pgm]
1001 Type=^PGM
1002 Include=image
1004 [ppm]
1005 Type=^PPM
1006 Include=image
1008 [netpbm]
1009 Type=^Netpbm
1010 Include=image
1013 ### Video ###
1015 [webm-by-type]
1016 Type=WebM
1017 Include=video
1020 ### Documents ###
1022 [postscript]
1023 Type=^PostScript
1024 Open=@EXTHELPERSDIR@/doc.sh open ps
1025 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
1027 [pdf]
1028 Type=^PDF
1029 Open=@EXTHELPERSDIR@/doc.sh open pdf
1030 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
1032 # Microsoft Word Document
1033 [msdoc-by-type]
1034 Type=^Microsoft\ Word
1035 Open=@EXTHELPERSDIR@/doc.sh open msdoc
1036 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
1038 # Microsoft Excel Worksheet
1039 [msxls-by-type]
1040 Type=^Microsoft\ Excel
1041 Open=@EXTHELPERSDIR@/doc.sh open msxls
1042 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
1044 # Use OpenOffice.org/LibreOffice to open any MS Office documents
1045 [mso-doc-1]
1046 Type=^Microsoft\ Office\ Document
1047 Open=@EXTHELPERSDIR@/doc.sh open ooffice
1049 [mso-doc-2]
1050 Type=^Microsoft\ OOXML
1051 Open=@EXTHELPERSDIR@/doc.sh open ooffice
1053 [framemaker]
1054 Type=^FrameMaker
1055 Open=@EXTHELPERSDIR@/doc.sh open framemaker
1058 ### Miscellaneous ###
1060 [sqlite3.db]
1061 Type=^SQLite 3.x database
1062 Open=@EXTHELPERSDIR@/misc.sh open sqlite
1063 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
1066 ### Plain compressed files ###
1068 [gzip]
1069 Type=\(gzip compressed
1070 Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
1071 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
1073 [bzip]
1074 Type=\(bzip compressed
1075 Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
1076 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
1078 [bzip2]
1079 Type=\(bzip2 compressed
1080 Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
1081 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
1083 [compress]
1084 Type=\(compress'd
1085 Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
1086 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
1088 [lz]
1089 Type=\(lzip compressed
1090 Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
1091 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
1093 [lzma]
1094 Type=\(LZMA compressed
1095 Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
1096 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
1098 [xz]
1099 Type=\(XZ compressed
1100 Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
1101 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
1103 [zstd]
1104 Type=\(Zstandard compressed
1105 Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more}
1106 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
1108 [zip-by-type]
1109 Type=\(Zip archive
1110 Open=%cd %p/uzip://
1111 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
1113 [jar]
1114 Type=\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
1115 TypeIgnoreCase=true
1116 Open=%cd %p/uzip://
1117 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
1119 [lha]
1120 Type=^LHa\ .*archive
1121 Open=%cd %p/ulha://
1122 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
1124 [pak]
1125 Type=^PAK\ .*archive
1126 Open=%cd %p/unar://
1127 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak
1129 # Parity Archive
1130 [par2]
1131 Type=^Parity\ Archive\ Volume\ Set
1132 Open=@EXTHELPERSDIR@/archive.sh open par2
1135 ######### Includes #########
1136 # Includes should be at end of the bindings
1138 [Include/tar.gz]
1139 Open=%cd %p/utar://
1140 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
1142 [Include/cpio]
1143 Open=%cd %p/ucpio://
1144 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
1146 [Include/editor]
1147 Open=%var{EDITOR:vi} %f
1149 [Include/image]
1150 Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
1151 View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
1153 [Include/video]
1154 Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
1155 View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
1158 ######### Default #########
1160 # Default target for anything not described above
1161 [Default]
1162 Open=
1163 View=
1165 ### EOF ###