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