Ticket #4398: crash on quick view of archives.
[midnight-commander.git] / misc / mc.ext.in
blobf393fbb1c56a419f70e5659df5eeb2935c30f70a
1 # Midnight Commander 3.0 extension file
2 # Warning: Structure of this file has changed completely with version 3.0
4 # All lines starting with # or empty lines are thrown away.
5 # Lines starting in the first column should have following format:
7 # keyword/descNL, i.e. everything after keyword/ until new line is desc
9 # keyword can be:
11 #    shell (desc is, when starting with a dot, any extension (no wildcars),
12 #          i.e. matches all the files *desc . Example: .tar matches *.tar;
13 #          if it doesn't start with a dot, it matches only a file of that name)
15 #    shell/i (desc is, when starting with a dot, any extension (no wildcars),
16 #          The same as shell but with case insensitive.
18 #    regex (desc is an extended regular expression)
19 #          Please note that we are using the GNU regex library and thus
20 #          \| matches the literal | and | has special meaning (or) and
21 #          () have special meaning and \( \) stand for literal ( ).
23 #    regex/i (desc is an extended regular expression)
24 #          The same as regex but with case insensitive.
26 #    type  (file matches this if `file %f` matches regular expression desc
27 #          (the filename: part from `file %f` is removed))
28 #          Ignored if the "file" utility isn't used (not found in configure
29            step or disabled in ini file).
31 #    type/i (file matches this if `file %f` matches regular expression desc)
32 #          The same as type but with case insensitive.
34 #    directory (matches any directory matching regular expression desc)
36 #    include (matches an include directive)
38 #    default (matches any file no matter what desc is)
40 # Other lines should start with a space or tab and should be in the format:
42 # keyword=commandNL (with no spaces around =), where keyword should be:
44 #    Open (if the user presses Enter or doubleclicks it),
46 #    View (F3), Edit (F4)
48 #    Include is the keyword used to add any further entries from an include/
49 #    section
51 # command is any one-line shell command, with the following substitutions:
53 # %% -> % character
54 # %p -> name of the current file (without path, but pwd is its path).
55 #       Also provided to external application as MC_EXT_BASENAME
56 #       global variable
57 # %f -> name of the current file. Unlike %p, if file is located on a
58 #       non-local virtual filesystem, i.e. either tarfs or ftpfs,
59 #       then the file will be temporarily copied into a local directory
60 #       and %f will be the full path to this local temporal file.
61 #       If you don't want to get a local copy and want to get the
62 #       virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
63 #       use %d/%p instead of %f.
64 #       Also provided to external application as MC_EXT_FILENAME
65 #       global variable
66 # %d -> name of the current directory (pwd, without trailing slash)
67 #       Also provided to external application as MC_EXT_CURRENTDIR
68 #       global variable
69 # %s -> "selected files", i.e. space separated list of tagged files if any
70 #       or name of the current file.
71 #       Also provided to external application as MC_EXT_SELECTED
72 #       global variable
73 # %t -> list of tagged files
74 #       Also provided to external application as MC_EXT_ONLYTAGGED
75 #       global variable
76 # %u -> list of tagged files (they'll be untaged after the command)
78 # (If these 6 letters are in uppercase, they refer to the other panel.
79 # But you shouldn't have to use it in this file.)
82 # %cd -> the rest is a path mc should change into (cd won't work, since it's
83 #       a child process).  %cd handles even vfs names.
85 # %view -> the command you type will be piped into mc's internal file viewer
86 #       if you type only the %view and no command, viewer will load %f file
87 #       instead (i.e. no piping, so it is different to %view cat %f)
88 #       %view may be directly followed by {} with a list of any of
89 #       ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
90 #       text using backspace for bold and underscore) and unform
91 #       (no highlighting for nroff sequences) separated by commas.
93 # %var -> You use it like this: %var{VAR:default}.  This macro will expand
94 #       to the value of the VAR variable in the environment if it's set
95 #       otherwise the value in default will be used.  This is similar to
96 #       the Bourne shell ${VAR-default} construct.
98 # Rules are applied from top to bottom, thus the order is important.
99 # If some actions are missing, search continues as if this target didn't
100 # match (i.e. if a file matches the first and second entry and View action
101 # is missing in the first one, then on pressing F3 the View action from
102 # the second entry will be used. default should catch all the actions.
104 # Any new entries you develop for you are always welcome if they are
105 # useful on more than one system.  You can post your modifications
106 # as tickets at www.midnight-commander.org
109 ### Changes ###
111 # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com>
112 #                 2021-03-28 Andrew Borodin <aborodin@vmail.ru>
113 #                 2021-08-24 Tomas Szepe <szepe@pinerecords.com>
116 ### GIT Repo ###
117 # gitfs changeset
118 regex/^\[git\]
119         Open=%cd %p/changesetfs://
120         View=%cd %p/patchsetfs://
123 ### Archives ###
124 # Since we use "file -z", we should use regex/ and shell/ at first, then type/.
126 # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk, .gem
127 regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$|\.gem$
128         Open=%cd %p/utar://
129         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
131 shell/.tar.bz
132         # Open=%cd %p/utar://
133         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip
135 regex/\.t(ar\.bz2|bz2?|b2)$
136         Open=%cd %p/utar://
137         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2
139 # .tar.lzma, .tlz
140 regex/\.t(ar\.lzma|lz)$
141         Open=%cd %p/utar://
142         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma
144 # .tar.lz
145 shell/.tar.lz
146         Open=%cd %p/utar://
147         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz
149 # .tar.lz4, .tlz4
150 regex/\.t(ar\.lz4|lz4)$
151         Open=%cd %p/utar://
152         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz4
154 # .tar.xz, .txz
155 regex/\.t(ar\.xz|xz)$
156         Open=%cd %p/utar://
157         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
159 # .tar.zst, .tzst
160 regex/\.t(ar\.zst|zst)$
161         Open=%cd %p/utar://
162         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.zst
164 # .tar.F - used in QNX
165 shell/.tar.F
166         # Open=%cd %p/utar://
167         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
169 # .qpr/.qpk - QNX Neutrino package installer files
170 regex/\.qp[rk]$
171         Open=%cd %p/utar://
172         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
174 # tar
175 shell/i/.tar
176         Open=%cd %p/utar://
177         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
179 # arj
180 regex/i/\.a(rj|[0-9][0-9])$
181         Open=%cd %p/uarj://
182         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
184 # cab
185 shell/i/.cab
186         Open=%cd %p/ucab://
187         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
189 # ha
190 shell/i/.ha
191         Open=%cd %p/uha://
192         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
194 # rar
195 regex/i/\.r(ar|[0-9][0-9])$
196         Open=%cd %p/urar://
197         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
199 # ALZip
200 shell/i/.alz
201         Open=%cd %p/ualz://
202         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
204 # cpio
205 shell/.cpio.Z
206         Open=%cd %p/ucpio://
207         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
209 shell/.cpio.lz
210         Open=%cd %p/ucpio://
211         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz
213 shell/.cpio.lz4
214         Open=%cd %p/ucpio://
215         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz4
217 shell/.cpio.xz
218         Open=%cd %p/ucpio://
219         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
221 shell/.cpio.zst
222         Open=%cd %p/ucpio://
223         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.zst
225 shell/.cpio.gz
226         Open=%cd %p/ucpio://
227         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
229 shell/i/.cpio
230         Open=%cd %p/ucpio://
231         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
233 # initrd
234 regex/^(initramfs.*\.img|initrd(-.+)?\.img(-.+)?)$
235         Open=%cd %p/ucpio://
236         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
238 # 7zip archives (they are not man pages)
239 shell/i/.7z
240         Open=%cd %p/u7z://
241         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
243 # patch
244 regex/\.(diff|patch)(\.bz2)$
245         Open=%cd %p/patchfs://
246         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
248 regex/\.(diff|patch)(\.(gz|Z))$
249         Open=%cd %p/patchfs://
250         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
252 regex/\.(diff|patch)(\.xz)$
253     Open=%cd %p/patchfs://
254     View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
256 regex/\.(diff|patch)(\.zst)$
257     Open=%cd %p/patchfs://
258     View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
260 # ls-lR
261 regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
262         Open=%cd %p/lslR://
264 # trpm
265 shell/.trpm
266         Open=%cd %p/trpm://
267         View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
269 # RPM packages (SuSE uses *.spm for source packages)
270 regex/\.(src\.rpm|spm)$
271         Open=%cd %p/rpm://
272         View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
274 shell/.rpm
275         Open=%cd %p/rpm://
276         View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
278 # deb
279 regex/\.u?deb$
280         Open=%cd %p/deb://
281         View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
283 # dpkg
284 shell/.debd
285         Open=%cd %p/debd://
286         View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
288 # apt
289 shell/.deba
290         Open=%cd %p/deba://
291         View=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
293 # ISO9660
294 shell/i/.iso
295         Open=%cd %p/iso9660://
296         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
298 regex/\.(diff|patch)$
299         Open=%cd %p/patchfs://
300         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
302 # ar library
303 regex/\.s?a$
304         Open=%cd %p/uar://
305         #Open=%view{ascii} ar tv %f
306         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
308 # gplib
309 shell/i/.lib
310         Open=%cd %p/ulib://
311         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
313 # Mailboxes
314 type/^ASCII\ mail\ text
315         Open=%cd %p/mailfs://
318 ### Sources ###
320 # C/C++
321 regex/i/\.(c|cc|cpp)$
322         Include=editor
324 # C/C++ header
325 regex/i/\.(h|hh|hpp)$
326         Include=editor
328 # Fortran
329 shell/i/.f
330         Include=editor
332 # Assembler
333 regex/i/\.(s|asm)$
334         Include=editor
336 # .so libraries
337 regex/\.(so|so\.[0-9\.]*)$
338         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
340 # Object
341 type/^ELF
342         #Open=%var{PAGER:more} %f
343         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
346 ### Documentation ###
348 # Texinfo
349 #regex/\.(te?xi|texinfo)$
351 # GNU Info page
352 type/^Info\ text
353         Open=@EXTHELPERSDIR@/text.sh open info
355 shell/.info
356         Open=@EXTHELPERSDIR@/text.sh open info
358 # Exception: .3gp are video files not manual pages
359 shell/i/.3gp
360         Include=video
362 # Troff with me macros.
363 # Exception - "read.me" is not a nroff file.
364 shell/read.me
365         Open=
366         View=
368 shell/.me
369         Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
370         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
372 # Troff with ms macros.
373 shell/.ms
374         Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
375         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
377 # Manual page - compressed
378 type/troff.*gzip compressed
379         Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
380         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
382 type/troff.*bzip compressed
383         Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
384         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
386 type/troff.*bzip2 compressed
387         Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
388         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
390 # Manual page
391 type/troff or preprocessor input
392         Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
393         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
395 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz$
396         Open=@EXTHELPERSDIR@/text.sh open man.lz %var{PAGER:more}
397         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz %var{PAGER:more}
399 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz4$
400         Open=@EXTHELPERSDIR@/text.sh open man.lz4 %var{PAGER:more}
401         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz4 %var{PAGER:more}
403 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
404         Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
405         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
407 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
408         Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
409         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
411 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.zst$
412         Open=@EXTHELPERSDIR@/text.sh open man.zst %var{PAGER:more}
413         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.zst %var{PAGER:more}
415 # Perl pod page
416 shell/.pod
417         Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
418         View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
420 # CHM
421 shell/i/.chm
422         Open=@EXTHELPERSDIR@/text.sh open chm
425 ### Images ###
427 type/^GIF
428         Include=image
430 type/^JPEG
431         View=%view{ascii} @EXTHELPERSDIR@/image.sh view jpeg
432         Include=image
434 type/^PC\ bitmap
435         Include=image
437 type/^PNG
438         Include=image
440 type/^JNG
441         Include=image
443 type/^MNG
444         Include=image
446 type/^TIFF
447         Include=image
449 type/^PBM
450         Include=image
452 type/^PGM
453         Include=image
455 type/^PPM
456         Include=image
458 type/^Netpbm
459         Include=image
461 shell/.xcf
462         Open=@EXTHELPERSDIR@/image.sh open xcf
464 shell/.xbm
465         Open=@EXTHELPERSDIR@/image.sh open xbm
467 shell/.xpm
468         Include=image
469         View=@EXTHELPERSDIR@/image.sh view xpm %f
471 shell/.ico
472         Include=image
474 shell/i/.svg
475         View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg
476         Open=@EXTHELPERSDIR@/image.sh open svg
479 ### Sound files ###
481 regex/i/\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv)$
482         Open=@EXTHELPERSDIR@/sound.sh open common
483         View=%view{ascii} @EXTHELPERSDIR@/sound.sh view common
485 regex/i/\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
486         Open=@EXTHELPERSDIR@/sound.sh open mod
488 shell/i/.waw22
489         Open=@EXTHELPERSDIR@/sound.sh open wav22
491 shell/i/.mp3
492         Open=@EXTHELPERSDIR@/sound.sh open mp3
493         View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
495 regex/i/\.og[gax]$
496         Open=@EXTHELPERSDIR@/sound.sh open ogg
497         View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
499 shell/i/.opus
500         Open=@EXTHELPERSDIR@/sound.sh open opus
501         View=%view{ascii} @EXTHELPERSDIR@/sound.sh view opus
503 regex/i/\.(spx|flac)$
504         Open=@EXTHELPERSDIR@/sound.sh open common
506 regex/i/\.(midi?|rmid?)$
507         Open=@EXTHELPERSDIR@/sound.sh open midi
509 shell/i/.wma
510         Open=@EXTHELPERSDIR@/sound.sh open wma
511         View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
514 ### Play lists ###
516 regex/i/\.(m3u|pls)$
517         Open=@EXTHELPERSDIR@/sound.sh open playlist
520 ### Video ###
522 shell/i/.avi
523         Include=video
525 regex/i/\.as[fx]$
526         Include=video
528 shell/i/.divx
529         Include=video
531 shell/i/.mkv
532         Include=video
534 regex/i/\.(mov|qt)$
535         Include=video
537 regex/i/\.(mp4|m4v|mpe?g)$
538         Include=video
540 # MPEG-2 TS container + H.264 codec
541 shell/i/.mts
542         Include=video
544 shell/i/.ts
545         Include=video
547 shell/i/.vob
548         Include=video
550 shell/i/.wmv
551         Include=video
553 regex/i/\.fl[icv]$
554         Include=video
556 shell/i/.ogv
557         Include=video
559 regex/i/\.ra?m$
560         Open=@EXTHELPERSDIR@/video.sh open ram
562 # WebM
563 shell/i/.webm
564     Include=video
566 type/WebM
567     Include=video
570 ### Documents ###
572 # Postscript
573 type/^PostScript
574         Open=@EXTHELPERSDIR@/doc.sh open ps
575         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
577 # PDF
578 type/^PDF
579         Open=@EXTHELPERSDIR@/doc.sh open pdf
580         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
582 # html
583 regex/i/\.html?$
584         Open=@EXTHELPERSDIR@/web.sh open html
585         View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
587 # StarOffice 5.2
588 shell/.sdw
589         Open=@EXTHELPERSDIR@/doc.sh open ooffice
591 # StarOffice 6 and OpenOffice.org formats
592 regex/i/\.(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)$
593         Open=@EXTHELPERSDIR@/doc.sh open ooffice
594         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
596 # AbiWord
597 shell/.abw
598         Open=@EXTHELPERSDIR@/doc.sh open abw
600 # Gnumeric
601 shell/i/.gnumeric
602         Open=@EXTHELPERSDIR@/doc.sh open gnumeric
604 # Microsoft Word Document
605 regex/i/\.(do[ct]|wri|docx)$
606         Open=@EXTHELPERSDIR@/doc.sh open msdoc
607         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
608 type/^Microsoft\ Word
609         Open=@EXTHELPERSDIR@/doc.sh open msdoc
610         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
612 # RTF document
613 shell/i/.rtf
614         Open=@EXTHELPERSDIR@/doc.sh open msdoc
616 # Microsoft Excel Worksheet
617 regex/i/\.(xl[sw]|xlsx)$
618         Open=@EXTHELPERSDIR@/doc.sh open msxls
619         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
620 type/^Microsoft\ Excel
621         Open=@EXTHELPERSDIR@/doc.sh open msxls
622         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
624 # Microsoft PowerPoint Presentation
625 regex/i/\.(pp[ts]|pptx)$
626         Open=@EXTHELPERSDIR@/doc.sh open msppt
627         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt
629 # Use OpenOffice.org/LibreOffice to open any MS Office documents
630 type/^Microsoft\ Office\ Document
631         Open=@EXTHELPERSDIR@/doc.sh open ooffice
632 type/^Microsoft\ OOXML
633         Open=@EXTHELPERSDIR@/doc.sh open ooffice
635 # Framemaker
636 type/^FrameMaker
637         Open=@EXTHELPERSDIR@/doc.sh open framemaker
639 # DVI
640 shell/i/.dvi
641         Open=@EXTHELPERSDIR@/doc.sh open dvi
642         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
644 # TeX
645 shell/i/.tex
646         Include=editor
648 # Markdown
649 shell/i/.md
650         Include=editor
652 # DjVu
653 regex/i/\.djvu?$
654         Open=@EXTHELPERSDIR@/doc.sh open djvu
655         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
657 # Comic Books
658 regex/i/\.cb[zr]$
659         Open=@EXTHELPERSDIR@/doc.sh open comic
661 # Epup, mobi, fb2
662 regex/i/\.(epub|mobi|fb2)$
663         Open=@EXTHELPERSDIR@/doc.sh open ebook
664         View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ebook
667 ### Miscellaneous ###
669 # Compiled Java classes
670 shell/.class
671         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass
673 # Imakefile
674 shell/Imakefile
675         Open=xmkmf -a
677 # Makefile.PL (MakeMaker)
678 regex/^Makefile\.(PL|pl)$
679         Open=%var{PERL:perl} %f
681 # Makefile
682 regex/[Mm]akefile
683         Open=make -f %f %{Enter parameters}
685 # sqlite3.db
686 type/^SQLite 3.x database
687         Open=@EXTHELPERSDIR@/misc.sh open sqlite
688         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite
690 # dbf
691 shell/i/.dbf
692         Open=@EXTHELPERSDIR@/misc.sh open dbf
693         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
695 # REXX script
696 regex/\.(rexx?|cmd)$
697        Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
699 # Disk images for Commodore computers (VIC20, C64, C128)
700 shell/i/.d64
701         Open=%cd %p/uc1541://
702         View=%view{ascii} c1541 %f -list
703         Extract=c1541 %f -extract
705 # Glade, a user interface designer for GTK+ and GNOME
706 shell/i/.glade
707         Open=@EXTHELPERSDIR@/misc.sh open glade
709 # Gettext Catalogs
710 regex/\.g?mo$
711         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
713 # po
714 shell/.po
715         Open=@EXTHELPERSDIR@/misc.sh open po
717 # lyx
718 shell/i/.lyx
719         Open=@EXTHELPERSDIR@/misc.sh open lyx
720         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
722 # torrent
723 shell/i/.torrent
724         View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
727 ### Plain compressed files ###
729 # ace
730 shell/i/.ace
731         Open=%cd %p/uace://
732         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
733         Extract=unace x %f
735 # arc
736 shell/i/.arc
737         Open=%cd %p/uarc://
738         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
739         Extract=arc x %f '*'
740         Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
742 # zip
743 shell/i/.zip
744         Open=%cd %p/uzip://
745         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
747 # zoo
748 shell/i/.zoo
749         Open=%cd %p/uzoo://
750         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
752 # lz4
753 shell/i/.lz4
754         Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more}
755         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4
757 # WIM
758 shell/i/\.wim
759         Open=%cd %p/uwim://
760         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim
762 # gzip
763 type/\(gzip compressed
764         Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
765         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
767 # bzip2
768 type/\(bzip2 compressed
769         Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
770         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
772 # bzip
773 type/\(bzip compressed
774         Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
775         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
777 # compress
778 type/\(compress'd
779         Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
780         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
782 # lz
783 type/\(lzip compressed
784         Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more}
785         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz
787 # lzma
788 type/\(LZMA compressed
789         Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
790         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
792 # xz
793 type/\(XZ compressed
794         Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
795         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
797 # zstd
798 type/\(Zstandard compressed
799         Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more}
800         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst
802 # zip
803 type/\(Zip archive
804         Open=%cd %p/uzip://
805         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
807 # jar(zip)
808 type/i/\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
809         Open=%cd %p/uzip://
810         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
812 # lha
813 type/^LHa\ .*archive
814         Open=%cd %p/ulha://
815         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
817 # PAK
818 type/^PAK\ .*archive
819         Open=%cd %p/unar://
820         View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak
822 # Parity Archive
823 type/^Parity\ Archive\ Volume\ Set
824         Open=@EXTHELPERSDIR@/archive.sh open par2
827 ### Includes
828 # includes should be at end of bindings
830 include/editor
831         Open=%var{EDITOR:vi} %f
833 include/image
834         Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
835         View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
837 include/video
838         Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
839         View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
842 ### Default ###
844 # Default target for anything not described above
845 default/*
846         Open=
847         View=
850 ### EOF ###