]> git.phdru.name Git - dotfiles.git/blob - .mc/mc.ext
.mc/mc.ext: `*.inpx` are zip files
[dotfiles.git] / .mc / mc.ext
1 ### phd
2
3 type/^Berkeley\ DB\ 1.85
4    View=%view{ascii} db_dump185 -p %f
5
6 # Compiled HTML
7 #shell/.chm
8 #   Open=fbreader %f &
9 #
10 ## DejaVu
11 #shell/.djvu
12 #   Open=djview %f &
13 #
14 # EPUB
15 shell/.epub
16    Open=fbreader %f &
17
18 # FB2
19 shell/.fb2
20    Open=fbreader %f &
21    View=%view{ascii} xsltproc /usr/local/src/distr/FictionBook/FB2_2_txt_ru.xsl %f
22
23 #type/^PostScript
24 #   Open=libreoffice %f &
25 #   View=%view{ascii} ps2ascii %f
26 #
27 ## RTF
28 #regex/i/\.rtf$
29 #   Open=fbreader %f &
30 #   View=%view{ascii} catdoc %f
31 #
32 #regex/i/\.(doc|wri)$
33 #   Include=msoffice-doc
34 #
35 regex/i/\.docx$
36    Edit=libreoffice %f &
37    Open=libreoffice %f &
38    View=%view{ascii} docx2txt %f - | iconv.py -f utf-8
39
40 type/^Microsoft\ Word 2007+
41    Include=msoffice-doc
42
43 type/^Microsoft\ Office\ Document
44    Include=msoffice-doc
45
46 regex/i/\.xlsx$
47    Include=msoffice-xlsx
48
49 type/^Microsoft\ Excel 2007+
50    Include=msoffice-xlsx
51
52 #type/^Composite\ Document\ File
53 #   Include=msoffice-doc
54 #
55 # ftplist
56 regex/\.ftplist$
57    Open=%cd %p#ftplist
58
59 # Play list
60 regex/i/\.(m3u8?|pls)$
61    Include=audio
62
63 # Lossless audio
64 regex/\.(cue|aac|ac3|ape|flac|wv|mka)$
65    Include=audio
66
67 ## Object
68 #shell/.o
69 #   View=%view{ascii} nm %f
70 #   Disassemble=%view{ascii} objdump -d -r %f
71 #
72 ## Python
73 #shell/.py
74 #   Open=python %f
75 #   View=%view{ascii} cat %f
76 #   Compile=compyle %s
77 #   Icon=snake.xpm
78
79 # Python packages
80 regex/\.(egg|whl)$
81    Include=zip
82
83 #regex/i/\.tiff?$
84 #   Open=xview %f
85 #
86 shell/.torrent
87    Open=%cd %p/torrent://
88
89 regex/i/\.xml$
90    Include=xml
91
92 type/^XML *(1\.0 *)?document
93    Include=xml
94
95 # LRE/Flibusta INPX
96 regex/\.(inpx)$
97    Include=zip
98
99 include/audio
100    #Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear; case %f in *.m3u8?) while read song; do audtool --playlist-addurl "$song"; done < %f ;; *) audtool --playlist-addurl %f ;; esac; audtool --playback-play
101    #Open=mplayer %f &
102    Open=deadbeef %f &
103    View=%view{ascii} cat %f
104
105 include/msoffice-doc
106    Edit=libreoffice %f &
107    Open=libreoffice %f &
108    View=%view{ascii} catdoc %f
109
110 include/msoffice-xlsx
111    Edit=libreoffice %f &
112    Open=libreoffice %f &
113    View=%view{ascii} xlsx2csv %f | iconv.py -f utf-8
114
115 #include/video
116 #   Open=mplayer %f &
117 #   View=%view{ascii} cat %f
118 #
119 include/xml
120    Open=%cd %p/xml://
121
122 include/zip
123         Open=%cd %p/uzip://
124         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
125
126 ### /phd
127
128 # Midnight Commander 3.0 extension file
129 # Warning: Structure of this file has changed completely with version 3.0
130 #
131 # All lines starting with # or empty lines are thrown away.
132 # Lines starting in the first column should have following format:
133 #
134 # keyword/descNL, i.e. everything after keyword/ until new line is desc
135 #
136 # keyword can be:
137 #
138 #    shell (desc is, when starting with a dot, any extension (no wildcars),
139 #          i.e. matches all the files *desc . Example: .tar matches *.tar;
140 #          if it doesn't start with a dot, it matches only a file of that name)
141 #
142 #    shell/i (desc is, when starting with a dot, any extension (no wildcars),
143 #          The same as shell but with case insensitive.
144 #
145 #    regex (desc is an extended regular expression)
146 #          Please note that we are using the GNU regex library and thus
147 #          \| matches the literal | and | has special meaning (or) and
148 #          () have special meaning and \( \) stand for literal ( ).
149 #
150 #    regex/i (desc is an extended regular expression)
151 #          The same as regex but with case insensitive.
152 #
153 #    type  (file matches this if `file %f` matches regular expression desc
154 #          (the filename: part from `file %f` is removed))
155 #
156 #    type/i (file matches this if `file %f` matches regular expression desc)
157 #          The same as type but with case insensitive.
158 #
159 #    directory (matches any directory matching regular expression desc)
160 #
161 #    include (matches an include directive)
162 #
163 #    default (matches any file no matter what desc is)
164 #
165 # Other lines should start with a space or tab and should be in the format:
166 #
167 # keyword=commandNL (with no spaces around =), where keyword should be:
168 #
169 #    Open (if the user presses Enter or doubleclicks it),
170 #
171 #    View (F3), Edit (F4)
172 #
173 #    Include is the keyword used to add any further entries from an include/
174 #    section
175 #
176 # command is any one-line shell command, with the following substitutions:
177 #
178 # %% -> % character
179 # %p -> name of the current file (without path, but pwd is its path).
180 #       Also provided to external application as MC_EXT_BASENAME
181 #       global variable
182 # %f -> name of the current file. Unlike %p, if file is located on a
183 #       non-local virtual filesystem, i.e. either tarfs or ftpfs,
184 #       then the file will be temporarily copied into a local directory
185 #       and %f will be the full path to this local temporal file.
186 #       If you don't want to get a local copy and want to get the
187 #       virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
188 #       use %d/%p instead of %f.
189 #       Also provided to external application as MC_EXT_FILENAME
190 #       global variable
191 # %d -> name of the current directory (pwd, without trailing slash)
192 #       Also provided to external application as MC_EXT_CURRENTDIR
193 #       global variable
194 # %s -> "selected files", i.e. space separated list of tagged files if any
195 #       or name of the current file.
196 #       Also provided to external application as MC_EXT_SELECTED
197 #       global variable
198 # %t -> list of tagged files
199 #       Also provided to external application as MC_EXT_ONLYTAGGED
200 #       global variable
201 # %u -> list of tagged files (they'll be untaged after the command)
202 #
203 # (If these 6 letters are in uppercase, they refer to the other panel.
204 # But you shouldn't have to use it in this file.)
205 #
206 #
207 # %cd -> the rest is a path mc should change into (cd won't work, since it's
208 #       a child process).  %cd handles even vfs names.
209 #
210 # %view -> the command you type will be piped into mc's internal file viewer
211 #       if you type only the %view and no command, viewer will load %f file
212 #       instead (i.e. no piping, so it is different to %view cat %f)
213 #       %view may be directly followed by {} with a list of any of
214 #       ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
215 #       text using backspace for bold and underscore) and unform
216 #       (no highlighting for nroff sequences) separated by commas.
217 #
218 # %var -> You use it like this: %var{VAR:default}.  This macro will expand
219 #       to the value of the VAR variable in the environment if it's set
220 #       otherwise the value in default will be used.  This is similar to
221 #       the Bourne shell ${VAR-default} construct.
222 #
223 # Rules are applied from top to bottom, thus the order is important.
224 # If some actions are missing, search continues as if this target didn't
225 # match (i.e. if a file matches the first and second entry and View action
226 # is missing in the first one, then on pressing F3 the View action from
227 # the second entry will be used. default should catch all the actions.
228 #
229 # Any new entries you develop for you are always welcome if they are
230 # useful on more than one system.  You can post your modifications
231 # as tickets at www.midnight-commander.org
232
233
234 ### Changes ###
235 #
236 # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com>
237
238
239 ### GIT Repo ###
240 # gitfs changeset
241 regex/^\[git\]
242         Open=%cd %p/changesetfs://
243         View=%cd %p/patchsetfs://
244
245 ### Archives ###
246
247 # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk, .gem
248 regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$|\.gem$
249         Open=%cd %p/utar://
250         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.gz
251
252 shell/.tar.bz
253         # Open=%cd %p/utar://
254         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip
255
256 regex/\.t(ar\.bz2|bz2?|b2)$
257         Open=%cd %p/utar://
258         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip2
259
260 # .tar.lzma, .tlz
261 regex/\.t(ar\.lzma|lz)$
262         Open=%cd %p/utar://
263         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lzma
264
265 # .tar.lz
266 shell/.tar.lz
267         Open=%cd %p/utar://
268         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz
269
270 # .tar.lz4, .tlz4
271 regex/\.t(ar\.lz4|lz4)$
272         Open=%cd %p/utar://
273         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz4
274
275 # .tar.xz, .txz
276 regex/\.t(ar\.xz|xz)$
277         Open=%cd %p/utar://
278         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.xz
279
280 # .tar.zst, .tzst
281 regex/\.t(ar\.zst|zst)$
282         Open=%cd %p/utar://
283         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.zst
284
285 # .tar.F - used in QNX
286 shell/.tar.F
287         # Open=%cd %p/utar://
288         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.F
289
290 # .qpr/.qpk - QNX Neutrino package installer files
291 regex/\.qp[rk]$
292         Open=%cd %p/utar://
293         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.qpr
294
295 # tar
296 shell/i/.tar
297         Open=%cd %p/utar://
298         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar
299
300 # lha
301 type/^LHa\ .*archive
302         Open=%cd %p/ulha://
303         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lha
304
305 # arj
306 regex/i/\.a(rj|[0-9][0-9])$
307         Open=%cd %p/uarj://
308         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arj
309
310 # cab
311 shell/i/.cab
312         Open=%cd %p/ucab://
313         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cab
314
315 # ha
316 shell/i/.ha
317         Open=%cd %p/uha://
318         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ha
319
320 # rar
321 regex/i/\.r(ar|[0-9][0-9])$
322         Open=%cd %p/urar://
323         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view rar
324
325 # ALZip
326 shell/i/.alz
327         Open=%cd %p/ualz://
328         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view alz
329
330 # cpio
331 shell/.cpio.Z
332         Open=%cd %p/ucpio://
333         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.z
334
335 shell/.cpio.lz
336         Open=%cd %p/ucpio://
337         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz
338
339 shell/.cpio.lz4
340         Open=%cd %p/ucpio://
341         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz4
342
343 shell/.cpio.xz
344         Open=%cd %p/ucpio://
345         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.xz
346
347 shell/.cpio.zst
348         Open=%cd %p/ucpio://
349         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.zst
350
351 shell/.cpio.gz
352         Open=%cd %p/ucpio://
353         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.gz
354
355 shell/i/.cpio
356         Open=%cd %p/ucpio://
357         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio
358
359 # initrd
360 regex/^(initramfs.*\.img|initrd(-.+)?\.img(-.+)?)$
361         Open=%cd %p/ucpio://
362         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio
363
364 # 7zip archives (they are not man pages)
365 shell/i/.7z
366         Open=%cd %p/u7z://
367         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view 7z
368
369 # patch
370 regex/\.(diff|patch)(\.bz2)$
371         Open=%cd %p/patchfs://
372         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2
373
374 regex/\.(diff|patch)(\.(gz|Z))$
375         Open=%cd %p/patchfs://
376         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
377
378 regex/\.(diff|patch)(\.xz)$
379     Open=%cd %p/patchfs://
380     View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz
381
382 regex/\.(diff|patch)(\.zst)$
383     Open=%cd %p/patchfs://
384     View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst
385
386 # ls-lR
387 regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
388         Open=%cd %p/lslR://
389
390 # trpm
391 shell/.trpm
392         Open=%cd %p/trpm://
393         View=%view{ascii} /usr/lib/mc/ext.d/package.sh view trpm
394
395 # RPM packages (SuSE uses *.spm for source packages)
396 regex/\.(src\.rpm|spm)$
397         Open=%cd %p/rpm://
398         View=%view{ascii} /usr/lib/mc/ext.d/package.sh view src.rpm
399
400 shell/.rpm
401         Open=%cd %p/rpm://
402         View=%view{ascii} /usr/lib/mc/ext.d/package.sh view rpm
403
404 # deb
405 regex/\.u?deb$
406         Open=%cd %p/deb://
407         View=%view{ascii} /usr/lib/mc/ext.d/package.sh view deb
408
409 # dpkg
410 shell/.debd
411         Open=%cd %p/debd://
412         View=%view{ascii} /usr/lib/mc/ext.d/package.sh view debd
413
414 # apt
415 shell/.deba
416         Open=%cd %p/deba://
417         View=%view{ascii} /usr/lib/mc/ext.d/package.sh view deba
418
419 # ISO9660
420 shell/i/.iso
421         Open=%cd %p/iso9660://
422         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view iso9660
423
424
425 regex/\.(diff|patch)$
426         Open=%cd %p/patchfs://
427         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view cat
428
429 # ar library
430 regex/\.s?a$
431         Open=%cd %p/uar://
432         #Open=%view{ascii} ar tv %f
433         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view ar
434
435 # gplib
436 shell/i/.lib
437         Open=%cd %p/ulib://
438         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lib
439
440
441 # Mailboxes
442 type/^ASCII\ mail\ text
443         Open=%cd %p/mailfs://
444
445
446 ### Sources ###
447
448 # C/C++
449 regex/i/\.(c|cc|cpp)$
450         Include=editor
451
452 # C/C++ header
453 regex/i/\.(h|hh|hpp)$
454         Include=editor
455
456 # Fortran
457 shell/i/.f
458         Include=editor
459
460 # Assembler
461 regex/i/\.(s|asm)$
462         Include=editor
463
464 include/editor
465         Open=%var{EDITOR:editor} %f
466
467 # .so libraries
468 regex/\.(so|so\.[0-9\.]*)$
469         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view so
470
471 # Object
472 type/^ELF
473         #Open=%var{PAGER:more} %f
474         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view elf
475
476 ### Documentation ###
477
478 # Texinfo
479 #regex/\.(te?xi|texinfo)$
480
481 # GNU Info page
482 type/^Info\ text
483         Open=/usr/lib/mc/ext.d/text.sh open info
484
485 shell/.info
486         Open=/usr/lib/mc/ext.d/text.sh open info
487
488 # Exception: .3gp are video files not manual pages
489 shell/i/.3gp
490         Include=video
491
492 # Manual page
493 regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
494         Open=/usr/lib/mc/ext.d/text.sh open man %var{PAGER:more}
495         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man %var{PAGER:more}
496
497 # Perl pod page
498 shell/.pod
499         Open=/usr/lib/mc/ext.d/text.sh open pod %var{PAGER:more}
500         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view pod %var{PAGER:more}
501
502 # Troff with me macros.
503 # Exception - "read.me" is not a nroff file.
504 shell/read.me
505         Open=
506         View=
507
508 shell/.me
509         Open=/usr/lib/mc/ext.d/text.sh open nroff.me %var{PAGER:more}
510         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.me %var{PAGER:more}
511
512 # Troff with ms macros.
513 shell/.ms
514         Open=/usr/lib/mc/ext.d/text.sh open nroff.ms %var{PAGER:more}
515         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.ms %var{PAGER:more}
516
517 # Manual page - compressed
518 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
519         Open=/usr/lib/mc/ext.d/text.sh open man.gz %var{PAGER:more}
520         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.gz %var{PAGER:more}
521
522 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
523         Open=/usr/lib/mc/ext.d/text.sh open man.bz %var{PAGER:more}
524         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz %var{PAGER:more}
525
526 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
527         Open=/usr/lib/mc/ext.d/text.sh open man.bz2 %var{PAGER:more}
528         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz2 %var{PAGER:more}
529
530 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz$
531         Open=/usr/lib/mc/ext.d/text.sh open man.lz %var{PAGER:more}
532         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz %var{PAGER:more}
533
534 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz4$
535         Open=/usr/lib/mc/ext.d/text.sh open man.lz4 %var{PAGER:more}
536         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz4 %var{PAGER:more}
537
538 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
539         Open=/usr/lib/mc/ext.d/text.sh open man.lzma %var{PAGER:more}
540         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lzma %var{PAGER:more}
541
542 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
543         Open=/usr/lib/mc/ext.d/text.sh open man.xz %var{PAGER:more}
544         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.xz %var{PAGER:more}
545
546 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.zst$
547         Open=/usr/lib/mc/ext.d/text.sh open man.zst %var{PAGER:more}
548         View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.zst %var{PAGER:more}
549
550 # CHM
551 shell/i/.chm
552         Open=/usr/lib/mc/ext.d/text.sh open chm
553
554 ### Images ###
555
556 type/^GIF
557         Include=image
558
559 type/^JPEG
560         View=%view{ascii} /usr/lib/mc/ext.d/image.sh view jpeg
561         Include=image
562
563 type/^PC\ bitmap
564         Include=image
565
566 type/^PNG
567         Include=image
568
569 type/^JNG
570         Include=image
571
572 type/^MNG
573         Include=image
574
575 type/^TIFF
576         Include=image
577
578 type/^PBM
579         Include=image
580
581 type/^PGM
582         Include=image
583
584 type/^PPM
585         Include=image
586
587 type/^Netpbm
588         Include=image
589
590 shell/.xcf
591         Open=/usr/lib/mc/ext.d/image.sh open xcf
592
593 shell/.xbm
594         Open=/usr/lib/mc/ext.d/image.sh open xbm
595
596 shell/.xpm
597         Include=image
598         View=/usr/lib/mc/ext.d/image.sh view xpm %f
599
600 shell/.ico
601         Include=image
602
603 shell/i/.svg
604         View=%view{ascii} /usr/lib/mc/ext.d/image.sh view svg
605         Open=/usr/lib/mc/ext.d/image.sh open svg
606
607 include/image
608         Open=/usr/lib/mc/ext.d/image.sh open ALL_FORMATS
609         View=%view{ascii} /usr/lib/mc/ext.d/image.sh view ALL_FORMATS
610
611
612 ### Sound files ###
613
614 regex/i/\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv)$
615         Open=/usr/lib/mc/ext.d/sound.sh open common
616
617 regex/i/\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
618         Open=/usr/lib/mc/ext.d/sound.sh open mod
619
620 shell/i/.waw22
621         Open=/usr/lib/mc/ext.d/sound.sh open wav22
622
623 shell/i/.mp3
624         Open=/usr/lib/mc/ext.d/sound.sh open mp3
625         View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view mp3
626
627 regex/i/\.og[gax]$
628         Open=/usr/lib/mc/ext.d/sound.sh open ogg
629         View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view ogg
630
631 regex/i/\.(spx|flac)$
632         Open=/usr/lib/mc/ext.d/sound.sh open common
633
634 regex/i/\.(midi?|rmid?)$
635         Open=/usr/lib/mc/ext.d/sound.sh open midi
636
637 shell/i/.wma
638         Open=/usr/lib/mc/ext.d/sound.sh open wma
639         View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view wma
640
641
642 ### Play lists ###
643
644 regex/i/\.(m3u8?|pls)$
645         Open=/usr/lib/mc/ext.d/sound.sh open playlist
646
647
648 ### Video ###
649
650 shell/i/.avi
651         Include=video
652
653 regex/i/\.as[fx]$
654         Include=video
655
656 shell/i/.divx
657         Include=video
658
659 shell/i/.mkv
660         Include=video
661
662 regex/i/\.(mov|qt)$
663         Include=video
664
665 regex/i/\.(mp4|m4v|mpe?g)$
666         Include=video
667
668 # MPEG-2 TS container + H.264 codec
669 shell/i/.mts
670         Include=video
671
672 shell/i/.ts
673         Include=video
674
675 shell/i/.vob
676         Include=video
677
678 shell/i/.wmv
679         Include=video
680
681 regex/i/\.fl[icv]$
682         Include=video
683
684 shell/i/.ogv
685         Include=video
686
687 regex/i/\.ra?m$
688         Open=/usr/lib/mc/ext.d/video.sh open ram
689
690 # WebM
691 shell/i/.webm
692     Include=video
693
694 type/WebM
695     Include=video
696
697 include/video
698         Open=/usr/lib/mc/ext.d/video.sh open ALL_FORMATS
699         View=%view{ascii} /usr/lib/mc/ext.d/video.sh view ALL_FORMATS
700
701
702 ### Documents ###
703
704 # Postscript
705 type/^PostScript
706         Open=/usr/lib/mc/ext.d/doc.sh open ps
707         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view ps
708
709 # PDF
710 type/^PDF
711         Open=/usr/lib/mc/ext.d/doc.sh open pdf
712         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view pdf
713
714 # html
715 regex/i/\.html?$
716         Open=/usr/lib/mc/ext.d/web.sh open html
717         View=%view{ascii} /usr/lib/mc/ext.d/web.sh view html
718
719 # StarOffice 5.2
720 shell/.sdw
721         Open=/usr/lib/mc/ext.d/doc.sh open ooffice
722
723 # StarOffice 6 and OpenOffice.org formats
724 regex/i/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
725         Open=/usr/lib/mc/ext.d/doc.sh open ooffice
726         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view odt
727
728 # AbiWord
729 shell/.abw
730         Open=/usr/lib/mc/ext.d/doc.sh open abw
731
732 # Gnumeric
733 shell/i/.gnumeric
734         Open=/usr/lib/mc/ext.d/doc.sh open gnumeric
735
736 # Microsoft Word Document
737 regex/i/\.(do[ct]|wri|docx)$
738         Open=/usr/lib/mc/ext.d/doc.sh open msdoc
739         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc
740 type/^Microsoft\ Word
741         Open=/usr/lib/mc/ext.d/doc.sh open msdoc
742         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc
743
744 # RTF document
745 shell/i/.rtf
746         Open=/usr/lib/mc/ext.d/doc.sh open msdoc
747
748 # Microsoft Excel Worksheet
749 regex/i/\.(xl[sw]|xlsx)$
750         Open=/usr/lib/mc/ext.d/doc.sh open msxls
751         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls
752 type/^Microsoft\ Excel
753         Open=/usr/lib/mc/ext.d/doc.sh open msxls
754         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls
755
756 # Microsoft PowerPoint Presentation
757 regex/i/\.(pp[ts]|pptx)$
758         Open=/usr/lib/mc/ext.d/doc.sh open msppt
759         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msppt
760
761 # Use OpenOffice.org/LibreOffice to open any MS Office documents
762 type/^Microsoft\ Office\ Document
763         Open=/usr/lib/mc/ext.d/doc.sh open ooffice
764 type/^Microsoft\ OOXML
765         Open=/usr/lib/mc/ext.d/doc.sh open ooffice
766
767 # Framemaker
768 type/^FrameMaker
769         Open=/usr/lib/mc/ext.d/doc.sh open framemaker
770
771 # DVI
772 shell/i/.dvi
773         Open=/usr/lib/mc/ext.d/doc.sh open dvi
774         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view dvi
775
776 # TeX
777 shell/i/.tex
778         Include=editor
779
780 # DjVu
781 regex/i/\.djvu?$
782         Open=/usr/lib/mc/ext.d/doc.sh open djvu
783         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view djvu
784
785 # Comic Books
786 regex/i/\.cb[zr]$
787         Open=/usr/lib/mc/ext.d/doc.sh open comic
788
789 # Epub & mobi
790 regex/i/\.(epub|mobi)$
791         Open=/usr/lib/mc/ext.d/doc.sh open epub
792         View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view epub
793
794
795 ### Miscellaneous ###
796
797 # Compiled Java classes
798 shell/.class
799         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view javaclass
800
801 # Makefile
802 regex/^[Mm]akefile$
803         Open=make -f %f %{Enter parameters}
804
805 # Imakefile
806 shell/Imakefile
807         Open=xmkmf -a
808
809 # Makefile.PL (MakeMaker)
810 regex/^Makefile\.(PL|pl)$
811         Open=%var{PERL:perl} %f
812
813 # sqlite3.db
814 type/^SQLite 3.x database
815         Open=/usr/lib/mc/ext.d/misc.sh open sqlite
816         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view sqlite
817
818 # dbf
819 shell/i/.dbf
820         Open=/usr/lib/mc/ext.d/misc.sh open dbf
821         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view dbf
822
823 # REXX script
824 regex/\.(rexx?|cmd)$
825        Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
826
827 # Disk images for Commodore computers (VIC20, C64, C128)
828 shell/i/.d64
829         Open=%cd %p/uc1541://
830         View=%view{ascii} c1541 %f -list
831         Extract=c1541 %f -extract
832
833 # Glade, a user interface designer for GTK+ and GNOME
834 shell/i/.glade
835         Open=/usr/lib/mc/ext.d/misc.sh open glade
836
837 # Gettext Catalogs
838 regex/\.g?mo$
839         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view mo
840
841 # po
842 shell/.po
843         Open=/usr/lib/mc/ext.d/misc.sh open po
844
845 # lyx
846 shell/i/.lyx
847         Open=/usr/lib/mc/ext.d/misc.sh open lyx
848         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lyx
849
850 # torrent
851 shell/i/.torrent
852         View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view torrent
853
854 ### Plain compressed files ###
855
856 # ace
857 shell/i/.ace
858         Open=%cd %p/uace://
859         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ace
860         Extract=unace x %f
861
862 # arc
863 shell/i/.arc
864         Open=%cd %p/uarc://
865         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arc
866         Extract=arc x %f '*'
867         Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
868
869 # zip
870 shell/i/.zip
871         Open=%cd %p/uzip://
872         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
873
874 # zip
875 type/i/^zip\ archive
876         Open=%cd %p/uzip://
877         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
878
879 # jar(zip)
880 type/i/^Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
881         Open=%cd %p/uzip://
882         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
883
884 # zoo
885 shell/i/.zoo
886         Open=%cd %p/uzoo://
887         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zoo
888
889 # gzip
890 type/^gzip
891         Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more}
892         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
893
894 regex/\.(gz|Z)$
895         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
896
897 # bzip2
898 type/^bzip2
899         Open=/usr/lib/mc/ext.d/archive.sh view bzip2 %var{PAGER:more}
900         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2
901
902 regex/\.bz2?$
903         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2
904
905 # bzip
906 type/^bzip
907         Open=/usr/lib/mc/ext.d/archive.sh view bzip %var{PAGER:more}
908         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bzip
909
910 # compress
911 type/^compress
912         Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more}
913         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
914
915 # lz
916 regex/\.lz$
917         Open=/usr/lib/mc/ext.d/archive.sh view lz %var{PAGER:more}
918         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz
919
920 # lz
921 type/^LZIP
922         Open=/usr/lib/mc/ext.d/archive.sh view lz %var{PAGER:more}
923         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz
924
925 # lz4
926 regex/\.lz4$
927         Open=/usr/lib/mc/ext.d/archive.sh view lz4 %var{PAGER:more}
928         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz4
929
930 # lzma
931 regex/\.lzma$
932         Open=/usr/lib/mc/ext.d/archive.sh view lzma %var{PAGER:more}
933         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lzma
934
935 # xz
936 regex/\.xz$
937         Open=/usr/lib/mc/ext.d/archive.sh view xz %var{PAGER:more}
938         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz
939
940 # zstd
941 regex/\.zst$
942         Open=/usr/lib/mc/ext.d/archive.sh view zst %var{PAGER:more}
943         View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst
944
945 # Parity Archive
946 type/^Parity\ Archive\ Volume\ Set
947         Open=/usr/lib/mc/ext.d/archive.sh open par2
948
949 ### Default ###
950
951 # Default target for anything not described above
952 default/*
953         Open=
954         View=
955
956
957 ### EOF ###