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