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