lib/mcconfig/history.c: fix comments.
[midnight-commander.git] / misc / mc.ext.ini.in
blob54ea7bf590b540787fe9b521f524c4da07c587a7
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.xz, .txz
246 [tar.xz]
247 Regex=\\.t(ar\\.xz|xz)$
248 Open=%cd %p/utar://
249 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
251 # .tar.zst, .tzst
252 [tar.zst]
253 Regex=\\.t(ar\\.zst|zst)$
254 Open=%cd %p/utar://
255 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.zst
257 # .tar.F - used on QNX
258 [tar.F]
259 Shell=.tar.F
260 # Open=%cd %p/utar://
261 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
263 # .qpr/.qpk - QNX Neutrino package installer files
264 [tar.qpr]
265 Regex=\\.qp[rk]$
266 Open=%cd %p/utar://
267 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
269 [tar]
270 Shell=.tar
271 ShellIgnoreCase=true
272 Open=%cd %p/utar://
273 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
275 [arj]
276 Regex=\\.a(rj|[0-9][0-9])$
277 RegexIgnoreCase=true
278 Open=%cd %p/uarj://
279 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
281 [cab]
282 Shell=.cab
283 ShellIgnoreCase=true
284 Open=%cd %p/ucab://
285 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
287 [ha]
288 Shell=.ha
289 ShellIgnoreCase=true
290 Open=%cd %p/uha://
291 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
293 [rar]
294 Regex=\\.r(ar|[0-9][0-9])$
295 RegexIgnoreCase=true
296 Open=%cd %p/urar://
297 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
299 # ALZip
300 [alz]
301 Shell=.alz
302 ShellIgnoreCase=true
303 Open=%cd %p/ualz://
304 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
306 [cpio.Z]
307 Shell=.cpio.Z
308 Open=%cd %p/ucpio://
309 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
311 [cpio.lz]
312 Shell=.cpio.lz
313 Open=%cd %p/ucpio://
314 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz
316 [cpio.lz4]
317 Shell=.cpio.lz4
318 Open=%cd %p/ucpio://
319 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz4
321 [cpio.xz]
322 Shell=.cpio.xz
323 Open=%cd %p/ucpio://
324 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
326 [cpio.zst]
327 Shell=.cpio.zst
328 Open=%cd %p/ucpio://
329 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.zst
331 [cpio.gz]
332 Shell=.cpio.gz
333 Open=%cd %p/ucpio://
334 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
336 [cpio]
337 Shell=.cpio
338 ShellIgnoreCase=true
339 Include=cpio
341 [initrd]
342 Regex=^(initramfs.*\\.img|initrd(-.+)?\\.img(-.+)?)$
343 Include=cpio
345 [7zip]
346 Shell=.7z
347 ShellIgnoreCase=true
348 Open=%cd %p/u7z://
349 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
351 [patch]
352 Regex=\\.(diff|patch)$
353 Open=%cd %p/patchfs://
354 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
356 [patch.gz]
357 Regex=\\.(diff|patch)\\.(gz|Z)$
358 Open=%cd %p/patchfs://
359 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
361 [patch.bz2]
362 Regex=\\.(diff|patch)\\.bz2$
363 Open=%cd %p/patchfs://
364 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
366 [patch.xz]
367 Regex=\\.(diff|patch)\\.xz$
368 Open=%cd %p/patchfs://
369 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
371 [patch.zst]
372 Regex=\\.(diff|patch)\\.zst$
373 Open=%cd %p/patchfs://
374 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
376 [ls-lR]
377 Regex=(^|\\.)ls-?lR(\\.gz|Z|bz2)$
378 Open=%cd %p/lslR://
380 [trpm]
381 Shell=.trpm
382 Open=%cd %p/trpm://
383 View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
385 # RPM packages (SuSE uses *.spm for source packages)
386 [src.rpm]
387 Regex=\\.(src\\.rpm|spm)$
388 Open=%cd %p/rpm://
389 View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
391 [rpm]
392 Shell=.rpm
393 Open=%cd %p/rpm://
394 View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
396 [deb]
397 Regex=\\.u?deb$
398 Open=%cd %p/deb://
399 View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
401 [dpkg]
402 Shell=.debd
403 Open=%cd %p/debd://
404 View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
406 [apt]
407 Shell=.deba
408 Open=%cd %p/deba://
409 Ciew=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
411 [ISO9660]
412 Shell=.iso
413 ShellIgnoreCase=true
414 Open=%cd %p/iso9660://
415 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
417 [ar]
418 Regex=\\.s?a$
419 Open=%cd %p/uar://
420 #Open=%view{ascii} ar tv %f
421 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
423 [gplib]
424 Shell=.lib
425 ShellIgnoreCase=true
426 Open=%cd %p/ulib://
427 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
429 ### Sources ###
431 [C/C++]
432 Regex=\\.(c|cc|cpp|cxx|c\\+\\+)$
433 RegexIgnoreCase=true
434 Include=editor
436 [C/C++ header]
437 Regex=\\.(h|hh|hpp|hxx|h\\+\\+)$
438 RegexIgnoreCase=true
439 Include=editor
441 [Fortran]
442 Shell=.f
443 ShellIgnoreCase=true
444 Include=editor
446 [Assembler]
447 Regex=\\.(s|asm)$
448 RegexIgnoreCase=true
449 Include=editor
451 [Typescript]
452 Shell=.ts
453 ShellIgnoreCase=true
454 Type=^Java source
455 Include=editor
457 # .so libraries
458 [so]
459 Regex=\\.(so|so\\.[0-9\\.]*)$
460 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
462 # .dylib libraries
463 [dylib]
464 Regex=\\.(dylib|dylib\\.[0-9\\.]*)$
465 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
468 ### Documentation ###
470 #[Texinfo]
471 #Regex=\\.(te?xi|texinfo)$
473 [info-by-shell]
474 Shell=.info
475 Open=@EXTHELPERSDIR@/text.sh open info
477 # Exception: .3gp are video files, not manual pages
478 [3gp]
479 Shell=.3gp
480 ShellIgnoreCase=true
481 Type=^ISO Media.*3GPP
482 Include=video
484 # Troff with me macros.
485 # Exception - "read.me" is not a nroff file.
486 [read.me]
487 Shell=read.me
488 Open=
489 View=
491 [troff]
492 Shell=.me
493 Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
494 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
496 [roff with ms macros]
497 Shell=.ms
498 Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
499 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
501 # Manual page
503 [man.lz]
504 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz$
505 Open=@EXTHELPERSDIR@/text.sh open man.lz %var{PAGER:more}
506 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz %var{PAGER:more}
508 [man.lz4]
509 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz4$
510 Open=@EXTHELPERSDIR@/text.sh open man.lz4 %var{PAGER:more}
511 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz4 %var{PAGER:more}
513 [man.lzma]
514 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzma$
515 Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
516 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
518 [man.xz]
519 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.xz$
520 Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
521 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
523 [man.zst]
524 Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.zst$
525 Open=@EXTHELPERSDIR@/text.sh open man.zst %var{PAGER:more}
526 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.zst %var{PAGER:more}
528 # Perl pod page
529 [pod]
530 Shell=.pod
531 Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
532 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
534 [chm]
535 Shell=.chm
536 ShellIgnoreCase=true
537 Open=@EXTHELPERSDIR@/text.sh open chm
539 ### Images ###
541 [xcf]
542 Shell=.xcf
543 Open=@EXTHELPERSDIR@/image.sh open xcf
545 [xbm]
546 Shell=.xbm
547 Open=@EXTHELPERSDIR@/image.sh open xbm
549 [xpm]
550 Shell=.xpm
551 Include=image
553 [ico]
554 Shell=.ico
555 Include=image
557 [svg]
558 Shell=.svg
559 ShellIgnoreCase=true
560 View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
561 Open=@EXTHELPERSDIR@/image.sh open svg
563 [webp]
564 Shell=.webp
565 Open=@EXTHELPERSDIR@/image.sh open webp
568 ### Sound files ###
570 [sound]
571 Regex=\\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$
572 RegexIgnoreCase=true
573 Open=@EXTHELPERSDIR@/sound.sh open common
574 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view common
576 [mod]
577 Regex=\\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
578 RegexIgnoreCase=true
579 Open=@EXTHELPERSDIR@/sound.sh open mod
581 [wav22]
582 Shell=.waw22
583 ShellIgnoreCase=true
584 Open=@EXTHELPERSDIR@/sound.sh open wav22
586 [mp3]
587 Shell=.mp3
588 ShellIgnoreCase=true
589 Open=@EXTHELPERSDIR@/sound.sh open mp3
590 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
592 [ogg]
593 Regex=\\.og[gax]$
594 RegexIgnoreCase=true
595 Open=@EXTHELPERSDIR@/sound.sh open ogg
596 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
598 [opus]
599 Shell=.opus
600 ShellIgnoreCase=true
601 Open=@EXTHELPERSDIR@/sound.sh open opus
602 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view opus
604 [midi]
605 Regex=\\.(midi?|rmid?)$
606 RegexIgnoreCase=true
607 Open=@EXTHELPERSDIR@/sound.sh open midi
609 [wma]
610 Shell=.wma
611 ShellIgnoreCase=true
612 Open=@EXTHELPERSDIR@/sound.sh open wma
613 View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
615 # Play list
616 [playlist]
617 Regex=\\.(m3u|pls)$
618 RegexIgnoreCase=true
619 Open=@EXTHELPERSDIR@/sound.sh open playlist
622 ### Video ###
624 [avi]
625 Shell=.avi
626 ShellIgnoreCase=true
627 Include=video
629 [asf]
630 Regex=\\.as[fx]$
631 RegexIgnoreCase=true
632 Include=video
634 [divx]
635 Shell=.divx
636 ShellIgnoreCase=true
637 Include=video
639 [mkv]
640 Shell=.mkv
641 ShellIgnoreCase=true
642 Include=video
644 [mov]
645 Regex=\\.(mov|qt)$
646 RegexIgnoreCase=true
647 Include=video
649 [mp4]
650 Regex=\\.(mp4|m4v|mpe?g)$
651 RegexIgnoreCase=true
652 Include=video
654 # MPEG-2 TS container + H.264 codec
655 [mts]
656 Shell=.mts
657 ShellIgnoreCase=true
658 Include=video
660 [ts]
661 Shell=.ts
662 ShellIgnoreCase=true
663 Include=video
665 [bob]
666 Shell=.vob
667 ShellIgnoreCase=true
668 Include=video
670 [wmv]
671 Shell=.wmv
672 ShellIgnoreCase=true
673 Include=video
675 [fli]
676 Regex=\\.fl[icv]$
677 RegexIgnoreCase=true
678 Include=video
680 [ogv]
681 Shell=.ogv
682 ShellIgnoreCase=true
683 Include=video
685 [realaudio]
686 Regex=\\.ra?m$
687 RegexIgnoreCase=true
688 Open=@EXTHELPERSDIR@/video.sh open ram
690 [webm-by-shell]
691 Shell=.webm
692 ShellIgnoreCase=true
693 Include=video
696 ### Documents ###
698 [html]
699 Regex=\\.html?$
700 RegexIgnoreCase=true
701 Open=@EXTHELPERSDIR@/web.sh open html
702 View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
704 [StarOffice-5.2]
705 Shell=.sdw
706 ShellIgnoreCase=true
707 Open=@EXTHELPERSDIR@/doc.sh open ooffice
709 # StarOffice 6 and OpenOffice.org formats
710 [OpenOffice.org]
711 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)$
712 RegexIgnoreCase=true
713 Open=@EXTHELPERSDIR@/doc.sh open ooffice
714 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
716 [AbiWord]
717 Shell=.abw
718 ShellIgnoreCase=true
719 Open=@EXTHELPERSDIR@/doc.sh open abw
721 [Gnumeric]
722 Shell=.gnumeric
723 ShellIgnoreCase=true
724 Open=@EXTHELPERSDIR@/doc.sh open gnumeric
726 [rtf]
727 Shell=.rtf
728 ShellIgnoreCase=true
729 Open=@EXTHELPERSDIR@/doc.sh open msdoc
731 # Microsoft Word Document
732 [msdoc-by-shell]
733 Regex=\\.(do[ct]|wri|docx)$
734 RegexIgnoreCase=true
735 Open=@EXTHELPERSDIR@/doc.sh open msdoc
736 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
738 # Microsoft Excel Worksheet
739 [msxls-by-shell]
740 Regex=\\.(xl[sw]|xlsx)$
741 RegexIgnoreCase=true
742 Open=@EXTHELPERSDIR@/doc.sh open msxls
743 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
745 # Microsoft PowerPoint Presentation
746 [msppt]
747 Regex=\\.(pp[ts]|pptx)$
748 RegexIgnoreCase=true
749 Open=@EXTHELPERSDIR@/doc.sh open msppt
750 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt
752 [dvi]
753 Shell=.dvi
754 ShellIgnoreCase=true
755 Open=@EXTHELPERSDIR@/doc.sh open dvi
756 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
758 [tex]
759 Shell=.tex
760 ShellIgnoreCase=true
761 Include=editor
763 [markdown]
764 Regex=\\.mk?d$
765 RegexIgnoreCase=true
766 Include=editor
768 [djvu]
769 Regex=\\.djvu?$
770 RegexIgnoreCase=true
771 Open=@EXTHELPERSDIR@/doc.sh open djvu
772 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
774 # Comic Books
775 [cbr]
776 Regex=\\.cb[zr]$
777 RegexIgnoreCase=true
778 Open=@EXTHELPERSDIR@/doc.sh open comic
780 # Epup, mobi, fb2
781 [ebook]
782 Regex=\\.(epub|mobi|fb2)$
783 RegexIgnoreCase=true
784 Open=@EXTHELPERSDIR@/doc.sh open ebook
785 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ebook
788 ### Miscellaneous ###
790 # Compiled Java classes
791 [javaclass]
792 Shell=.class
793 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass
795 [Imakefile]
796 Shell=Imakefile
797 Open=xmkmf -a
799 # Makefile.PL (MakeMaker)
800 [Makefile.pl]
801 Regex=^Makefile\\.(PL|pl)$
802 Open=%var{PERL:perl} %f
804 [Makefile]
805 Regex=^[Mm]akefile$
806 Open=make -f %f %{Enter parameters}
808 [dbf]
809 Shell=.dbf
810 ShellIgnoreCase=true
811 Open=@EXTHELPERSDIR@/misc.sh open dbf
812 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
814 # REXX script
815 [rexx]
816 Regex=\\.(rexx?|cmd)$
817 Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
819 # Disk images for Commodore computers (VIC20, C64, C128)
820 [d64]
821 Shell=.d64
822 ShellIgnoreCase=true
823 Open=%cd %p/uc1541://
824 View=%view{ascii} c1541 %f -list
826 # Glade, a user interface designer for GTK+ and GNOME
827 [glade]
828 Shell=.glade
829 ShellIgnoreCase=true
830 Open=@EXTHELPERSDIR@/misc.sh open glade
832 # Gettext Catalogs
833 [mo]
834 Regex=.g?mo$
835 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
837 [po]
838 Shell=.po
839 Open=@EXTHELPERSDIR@/misc.sh open po
841 [lyx]
842 Shell=.lyx
843 ShellIgnoreCase=true
844 Open=@EXTHELPERSDIR@/misc.sh open lyx
845 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
847 [torrent]
848 Shell=.torrent
849 ShellIgnoreCase=true
850 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
853 ### Plain compressed files ###
855 [ace]
856 Shell=.ace
857 ShellIgnoreCase=true
858 Open=%cd %p/uace://
859 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
861 [arc]
862 Shell=.arc
863 ShellIgnoreCase=true
864 Open=%cd %p/uarc://
865 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
867 [zip-by-shell]
868 Shell=.zip
869 ShellIgnoreCase=true
870 Open=%cd %p/uzip://
871 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
873 [zoo]
874 Shell=.zoo
875 ShellIgnoreCase=true
876 Open=%cd %p/uzoo://
877 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
879 [lz4]
880 Shell=.lz4
881 ShellIgnoreCase=true
882 Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more}
883 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4
885 [wim]
886 Shell=.wim
887 ShellIgnoreCase=true
888 Open=%cd %p/uwim://
889 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim
892 ######### Files by Type #########
894 ### Archives ###
896 [mailbox]
897 Type=^ASCII\ mail\ text
898 Open=%cd %p/mailfs://
901 ### Sources ###
903 # Object
904 [elf]
905 Type=^ELF
906 #Open=%var{PAGER:more} %f
907 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
909 [Mach-O]
910 Type=^Mach-O
911 #Open=%var{PAGER:more} %f
912 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib
914 ### Documentation ###
916 # GNU Info page
917 [info-by-type]
918 Type=^Info\ text
919 Open=@EXTHELPERSDIR@/text.sh open info
921 # Manual page - compressed
922 [troff.gz]
923 Type=troff.*gzip compressed
924 Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
925 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
927 [troff.bzip]
928 Type=troff.*bzip compressed
929 Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
930 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
932 [troff.bzip2]
933 Type=troff.*bzip2 compressed
934 Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
935 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
937 # Manual page
938 [man]
939 Type=troff or preprocessor input
940 Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
941 View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
944 ### Images ###
946 [gif]
947 Type=^GIF
948 Include=image
950 [jpeg]
951 Type=^JPEG
952 Include=image
954 [bitmap]
955 Type=^PC\ bitmap
956 Include=image
958 [png]
959 Type=^PNG
960 Include=image
962 [jng]
963 Type=^JNG
964 Include=image
966 [mng]
967 Type=^MNG
968 Include=image
970 [tiff]
971 Type=^TIFF
972 Include=image
974 [rbm]
975 Type=^PBM
976 Include=image
978 [pgm]
979 Type=^PGM
980 Include=image
982 [ppm]
983 Type=^PPM
984 Include=image
986 [netpbm]
987 Type=^Netpbm
988 Include=image
991 ### Video ###
993 [webm-by-type]
994 Type=WebM
995 Include=video
998 ### Documents ###
1000 [postscript]
1001 Type=^PostScript
1002 Open=@EXTHELPERSDIR@/doc.sh open ps
1003 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
1005 [pdf]
1006 Type=^PDF
1007 Open=@EXTHELPERSDIR@/doc.sh open pdf
1008 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
1010 # Microsoft Word Document
1011 [msdoc-by-type]
1012 Type=^Microsoft\ Word
1013 Open=@EXTHELPERSDIR@/doc.sh open msdoc
1014 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
1016 # Microsoft Excel Worksheet
1017 [msxls-by-type]
1018 Type=^Microsoft\ Excel
1019 Open=@EXTHELPERSDIR@/doc.sh open msxls
1020 View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
1022 # Use OpenOffice.org/LibreOffice to open any MS Office documents
1023 [mso-doc-1]
1024 Type=^Microsoft\ Office\ Document
1025 Open=@EXTHELPERSDIR@/doc.sh open ooffice
1027 [mso-doc-2]
1028 Type=^Microsoft\ OOXML
1029 Open=@EXTHELPERSDIR@/doc.sh open ooffice
1031 [framemaker]
1032 Type=^FrameMaker
1033 Open=@EXTHELPERSDIR@/doc.sh open framemaker
1036 ### Miscellaneous ###
1038 [sqlite3.db]
1039 Type=^SQLite 3.x database
1040 Open=@EXTHELPERSDIR@/misc.sh open sqlite
1041 View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
1044 ### Plain compressed files ###
1046 [gzip]
1047 Type=\(gzip compressed
1048 Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
1049 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
1051 [bzip]
1052 Type=\(bzip compressed
1053 Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
1054 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
1056 [bzip2]
1057 Type=\(bzip2 compressed
1058 Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
1059 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
1061 [compress]
1062 Type=\(compress'd
1063 Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
1064 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
1066 [lz]
1067 Type=\(lzip compressed
1068 Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
1069 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
1071 [lzma]
1072 Type=\(LZMA compressed
1073 Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
1074 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
1076 [xz]
1077 Type=\(XZ compressed
1078 Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
1079 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
1081 [zstd]
1082 Type=\(Zstandard compressed
1083 Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more}
1084 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
1086 [zip-by-type]
1087 Type=\(Zip archive
1088 Open=%cd %p/uzip://
1089 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
1091 [jar]
1092 Type=\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
1093 TypeIgnoreCase=true
1094 Open=%cd %p/uzip://
1095 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
1097 [lha]
1098 Type=^LHa\ .*archive
1099 Open=%cd %p/ulha://
1100 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
1102 [pak]
1103 Type=^PAK\ .*archive
1104 Open=%cd %p/unar://
1105 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak
1107 # Parity Archive
1108 [par2]
1109 Type=^Parity\ Archive\ Volume\ Set
1110 Open=@EXTHELPERSDIR@/archive.sh open par2
1113 ######### Includes #########
1114 # Includes should be at end of the bindings
1116 [Include/tar.gz]
1117 Open=%cd %p/utar://
1118 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
1120 [Include/cpio]
1121 Open=%cd %p/ucpio://
1122 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
1124 [Include/editor]
1125 Open=%var{EDITOR:vi} %f
1127 [Include/image]
1128 Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
1129 View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
1131 [Include/video]
1132 Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
1133 View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
1136 ######### Default #########
1138 # Default target for anything not described above
1139 [Default]
1140 Open=
1141 View=
1143 ### EOF ###