]> git.phdru.name Git - dotfiles.git/blob - .mc/mc.ext.ini
Feat(recode-filenames-recursive): Allow to omit parameters
[dotfiles.git] / .mc / mc.ext.ini
1 # Midnight Commander 4.0 extension file
2 #
3 # Warning: The structure of this file has been completely changed with the version 4.0!
4 #
5 # All lines starting with # or empty lines are ignoted.
6 #
7 # IMPORTANT: mc scans this file only upon first use or after editing it using the
8 # mc "Edit extension file" command (F9-c-e). If you edit this file in any other way
9 # while mc is running, you will need to press F9-c-e and exit the editor for your
10 # changes to take effect, or exit mc and start it again.
11 #
12 # Section name can be anything with following exceptions:
13 #    there are two reserved section names:
14 #        mc.ext.ini
15 #        Default
16 #    special name pattern:
17 #        Include/xxxxx
18 # See below for more details.
19 #
20 # Section [mc.ext.ini] is mandatory. It contains file metadata.
21 # "Version" parameter is mandatory. It contains the file format version.
22 #
23 # Section [Default] is optional. It is applied only if no other match was found.
24 #
25 # Sections like [Include/xxxx] can be referenced as "Include=xxxx" from other sections.
26 # Section [Include/xxxx] can be located as before as after sections that point to it.
27 #
28 # Sections are processed from top to bottom, thus the order is important.
29 # If there are more than one sections with the same name in this file, the first
30 # section will be used.
31 #
32 # [Default] should be a catch-all action and come last.
33 #
34 # A section describing a file can contain following keys:
35 #
36 #    File descriptions:
37 #
38 #        Directory
39 #            Matches any directory matching regular expression.
40 #            Always case sensitive.
41 #            This key has the highest priority over other keys. If this key is in a section,
42 #            other keys are ignored.
43 #
44 #        Type
45 #            Matches files if `file %f` matches regular expression
46 #            (the "filename:" part is removed from `file %f` output).
47 #            Ignored if the "file" utility isn't used (not found during the configure step
48 #            or disabled in the ini-file).
49 #
50 #        TypeIgnoreCase [true|false]
51 #            Defines whether the Type value is case sensitive or not.
52 #            If absent, Type is case sensitive.
53 #
54 #        Regex
55 #            An extended regular expression
56 #            Please note that we are using the PCRE library and thus \| matches
57 #            the literal | and | has a special meaning (or), and () have a special meaning
58 #            and \( \) stand for literal ( ).
59 #
60 #            Example:
61 #                Regex=\.t(ar\.lzma|lz)$
62 #            matches *.tar.lzma or *.tlz.
63 #
64 #        RegexIgnoreCase [true|false]
65 #            Defines whether the Regex value is case sensitive or not.
66 #            If absent, Regex is case sensitive.
67 #
68 #        Shell
69 #            Describes an extension when starting with a dot (no wildcards).
70 #
71 #            Example:
72 #                Shell=.tar
73 #            matches *.tar.
74 #
75 #            If it doesn't start with a dot, it matches only a file of that name.
76 #
77 #            If both keys Regex and Shell are in the same section, Regex is used
78 #            and Shell is ignored.
79 #
80 #        ShellIgnoreCase [true|false]
81 #            Defines whether the Shell value is case sensitive or not.
82 #            If absent, Shell is case sensitive.
83 #
84 #        Include
85 #            Reference to another section.
86 #
87 #            Example:
88 #                Include=video
89 #            points to the [Include/video] section.
90 #
91 #    Commands:
92 #
93 #        Open
94 #            Execute the command if the user presses Enter or doubleclicks it.
95 #
96 #        View
97 #            Execute the command if the user presses F3.
98 #
99 #        Edit
100 #            Execute the command if the user presses F4.
101 #
102 #    All commands are ignored if the section contains the Include key.
103 #
104 #    Command is any one-line shell command, with the following substitutions:
105 #
106 #        %%
107 #            The % character
108 #
109 #        %p
110 #            Name of the current file without the path.
111 #            Also provided to the external application as MC_EXT_BASENAME environment variable.
112 #
113 #        %f
114 #            Name of the current file. Unlike %p, if the file is located on a non-local
115 #            virtual filesystem, that is either tarfs or ftpfs, then the file will be
116 #            temporarily copied into a local directory and %f will be the full path
117 #            to this local temporary file.
118 #            If you don't want to get a local copy and want to get the virtual fs path
119 #            (like /ftp://ftp.cvut.cz/pub/hungry/xword), then use %d/%p instead of %f.
120 #            Also provided to the external application as MC_EXT_FILENAME environment variable.
121 #
122 #        %d
123 #            Name of the current directory without the trailing slash (`pwd`).
124 #            Also provided to the external application as MC_EXT_CURRENTDIR environment variable.
125 #
126 #        %s
127 #            "Selected files", that is space separated list of tagged files if any or the name
128 #            of the current file.
129 #            Also provided to the external application as MC_EXT_SELECTED environment variable.
130 #
131 #        %t
132 #            List of the tagged files.
133 #            Also provided to the external application as MC_EXT_ONLYTAGGED environment variable.
134 #
135 #        %u
136 #            List of the tagged files (they will be untaged after the command is executed).
137 #
138 #        (If the letter following the % is uppercase, then it refers to the opposite panel.
139 #        But you shouldn't have to use it in this file.)
140 #
141 #        %cd
142 #            The rest is a path mc should change into (cd won't work, since it's a child process).
143 #            %cd handles even vfs names.
144 #
145 #        %view
146 #            The command output will be piped into mc's internal file viewer. If you use
147 #            only %view and no command, the viewer will load %f file instead (that is no piping,
148 #            which is the difference to %view cat %f).
149 #
150 #            %view may be directly followed by {} with one or more of the following
151 #            separated by commas:
152 #                ascii (ascii mode)
153 #                hex (hex mode),
154 #                nroff (color highlighting for text using escape sequences),
155 #                unform (no highlighting for nroff sequences)
156 #
157 #        %var{VAR:default}
158 #            This macro will expand to the value of the VAR variable in the environment if it's
159 #            set, otherwise the default value will be used. This is similar to the Bourne shell
160 #            ${VAR-default} construct.
161 #
162 #    Section can contain both Type and Regex or Type and Shell keys. In this case
163 #    they are handled as an AND condition.
164 #
165 #    Example:
166 #        Shell=.3gp
167 #        Type=^ISO Media.*3GPP
168 #
169 #    matches *.3gp files for which `file` output is a line starting with "ISO Media"
170 #    and containing "3GPP".
171 #
172 #    If there are more than one keys with the same name in a section, the last key will be used.
173 #
174 #
175 # Any new entries you want to add are always welcome if they are useful on more than one
176 # system. You can post your modifications as tickets at www.midnight-commander.org.
177
178
179 ### Changes ###
180 #
181 # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com>
182 #                 2021-03-28 Andrew Borodin <aborodin@vmail.ru>
183 #                 2021-08-24 Tomas Szepe <szepe@pinerecords.com>
184 #                 2022-09-11 Andrew Borodin <aborodin@vmail.ru>: port to INI format.
185
186 [mc.ext.ini]
187 Version=4.0
188
189 ### phd
190 # For MC version 4
191
192 [Berkeley DB 1.85]
193 Type=^Berkeley\ DB\ 1.85
194 View=%view{ascii} db_dump185 -p %f
195
196 # [Compiled HTML]
197 #Shell=.chm
198 #Open=fbreader %f &
199 #
200 ## [DejaVu]
201 #Shell=.djvu
202 #Open=djview %f &
203 #
204 [EPUB]
205 Shell=.epub
206 Open=fbreader %f &
207
208 [FB2]
209 Shell=.fb2
210 Open=fbreader %f &
211 View=%view{ascii} xsltproc /usr/local/src/distr/FictionBook/FB2_2_txt_ru.xsl %f
212
213 #[PostScript]
214 #Type=^PostScript
215 #Open=libreoffice %f &
216 #View=%view{ascii} ps2ascii %f
217
218 #[RTF]
219 #Regex=\.rtf$
220 #Open=fbreader %f &
221 #View=%view{ascii} catdoc %f
222
223 #[doc-wri]
224 #Regex=\.(doc|wri)$
225 #Include=msoffice-doc
226
227 [docs]
228 Regex=\.docx$
229 Edit=libreoffice %f &
230 Open=libreoffice %f &
231 View=%view{ascii} docx2txt %f - | iconv.py -f utf-8
232
233 #[Composite Document File]
234 #Type=^Composite\ Document\ File
235 #Include=msoffice-doc
236
237 [Microsoft Word 2007]
238 Type=^Microsoft\ Word\ 2007+
239 Include=msoffice-doc
240
241 [Microsoft Office Document]
242 Type=^Microsoft\ Office\ Document
243 Include=msoffice-doc
244
245 [xlsx]
246 Regex=\.xlsx$
247 Include=msoffice-xlsx
248
249 [/^Microsoft Excel 2007+]
250 Include=msoffice-xlsx
251
252 [ftplist]
253 Regex=\.ftplist$
254 Open=%cd %p#ftplist
255
256 [Play list]
257 Regex=\.(m3u8?|pls)$
258 Include=audio
259
260 [Lossless audio]
261 Regex=\.(cue|aac|ac3|ape|flac|wv|mka)$
262 Include=audio
263
264 ## Object
265 #Shell=.o
266 #View=%view{ascii} nm %f
267 #Disassemble=%view{ascii} objdump -d -r %f
268 #
269 ## Python
270 #Shell=.py
271 #Open=python %f
272 #View=%view{ascii} cat %f
273 #Compile=compyle %s
274 #Icon=snake.xpm
275
276 [Conda/python packages]
277 Regex=\.(conda|egg|whl)$
278 Include=zip
279
280 # TIFF
281 #Regex=\.tiff?$
282 #Open=xview %f
283
284 [torrent]
285 Shell=.torrent
286 Open=%cd %p/torrent://
287
288 [xml-ext]
289 Regex=\.xml$
290 Include=xml
291
292 [xml-type]
293 Type=^XML\ *(1\.0\ *)?document
294 Include=xml
295
296 [LRE/Flibusta INPX]
297 Regex=\.(inpx)$
298 Include=zip
299
300 [Include/audio]
301 #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
302 #Open=mplay %f &
303 Open=deadbeef %f &
304 View=%view{ascii} cat %f
305
306 [Include/msoffice-doc]
307 Edit=libreoffice %f &
308 Open=libreoffice %f &
309 View=%view{ascii} catdoc %f
310
311 [Include/msoffice-xlsx]
312 Edit=libreoffice %f &
313 Open=libreoffice %f &
314 View=%view{ascii} xlsx2csv %f | iconv.py -f utf-8
315
316 #[Include/video]
317 #Open=mplay %f &
318 #View=%view{ascii} cat %f
319
320 [Include/xml]
321 Open=%cd %p/xml://
322
323 [Include/zip]
324 Open=%cd %p/uzip://
325 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
326
327 ### /phd
328
329 ### GIT Repo ###
330 [gitfs changeset]
331 Regex=^\[git\]
332 Open=%cd %p/changesetfs://
333 View=%cd %p/patchsetfs://
334
335 ### Archives ###
336 # Since we use "file -z", we should use Regex and Shell first, then Type.
337
338
339 ######### Files by name (Regex and Shell) #########
340
341 # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
342 [tar.gzip]
343 Regex=\.t([gp]?z|ar\.g?[zZ])$
344 Include=tar.gz
345
346 [ipk]
347 Shell=.ipk
348 Include=tar.gz
349
350 [gem]
351 Shell=.gem
352 Include=tar.gz
353
354 [tar.bzip]
355 Shell=.tar.bz
356 # Open=%cd %p/utar://
357 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip
358
359 [tar.bzip2]
360 Regex=\.t(ar\.bz2|bz2?|b2)$
361 Open=%cd %p/utar://
362 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip2
363
364 # .tar.lzma, .tlz
365 [tar.lzma]
366 Regex=\.t(ar\.lzma|lz)$
367 Open=%cd %p/utar://
368 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lzma
369
370 [tar.lz]
371 Shell=.tar.lz
372 Open=%cd %p/utar://
373 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz
374
375 # .tar.lz4, .tlz4
376 [tar.lz4]
377 Regex=\.t(ar\.lz4|lz4)$
378 Open=%cd %p/utar://
379 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz4
380
381 # .tar.xz, .txz
382 [tar.xz]
383 Regex=\.t(ar\.xz|xz)$
384 Open=%cd %p/utar://
385 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.xz
386
387 # .tar.zst, .tzst
388 [tar.zst]
389 Regex=\.t(ar\.zst|zst)$
390 Open=%cd %p/utar://
391 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.zst
392
393 # .tar.F - used on QNX
394 [tar.F]
395 Shell=.tar.F
396 # Open=%cd %p/utar://
397 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.F
398
399 # .qpr/.qpk - QNX Neutrino package installer files
400 [tar.qpr]
401 Regex=\.qp[rk]$
402 Open=%cd %p/utar://
403 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.qpr
404
405 [tar]
406 Shell=.tar
407 ShellIgnoreCase=true
408 Open=%cd %p/utar://
409 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar
410
411 [arj]
412 Regex=\.a(rj|[0-9][0-9])$
413 RegexIgnoreCase=true
414 Open=%cd %p/uarj://
415 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arj
416
417 [cab]
418 Shell=.cab
419 ShellIgnoreCase=true
420 Open=%cd %p/ucab://
421 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cab
422
423 [ha]
424 Shell=.ha
425 ShellIgnoreCase=true
426 Open=%cd %p/uha://
427 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ha
428
429 [rar]
430 Regex=\.r(ar|[0-9][0-9])$
431 RegexIgnoreCase=true
432 Open=%cd %p/urar://
433 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view rar
434
435 # ALZip
436 [alz]
437 Shell=.alz
438 ShellIgnoreCase=true
439 Open=%cd %p/ualz://
440 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view alz
441
442 [cpio.Z]
443 Shell=.cpio.Z
444 Open=%cd %p/ucpio://
445 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.z
446
447 [cpio.lz]
448 Shell=.cpio.lz
449 Open=%cd %p/ucpio://
450 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz
451
452 [cpio.lz4]
453 Shell=.cpio.lz4
454 Open=%cd %p/ucpio://
455 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz4
456
457 [cpio.xz]
458 Shell=.cpio.xz
459 Open=%cd %p/ucpio://
460 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.xz
461
462 [cpio.zst]
463 Shell=.cpio.zst
464 Open=%cd %p/ucpio://
465 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.zst
466
467 [cpio.gz]
468 Shell=.cpio.gz
469 Open=%cd %p/ucpio://
470 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.gz
471
472 [cpio]
473 Shell=.cpio
474 ShellIgnoreCase=true
475 Include=cpio
476
477 [initrd]
478 Regex=^(initramfs.*\.img|initrd(-.+)?\.img(-.+)?)$
479 Include=cpio
480
481 [7zip]
482 Shell=.7z
483 ShellIgnoreCase=true
484 Open=%cd %p/u7z://
485 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view 7z
486
487 [patch]
488 Regex=\.(diff|patch)$
489 Open=%cd %p/patchfs://
490 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view cat
491
492 [patch.gz]
493 Regex=\.(diff|patch)\.(gz|Z)$
494 Open=%cd %p/patchfs://
495 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
496
497 [patch.bz2]
498 Regex=\.(diff|patch)\.bz2$
499 Open=%cd %p/patchfs://
500 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2
501
502 [patch.xz]
503 Regex=\.(diff|patch)\.xz$
504 Open=%cd %p/patchfs://
505 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz
506
507 [patch.zst]
508 Regex=\.(diff|patch)\.zst$
509 Open=%cd %p/patchfs://
510 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst
511
512 [ls-lR]
513 Regex=(^|\.)ls-?lR(\.gz|Z|bz2)$
514 Open=%cd %p/lslR://
515
516 [trpm]
517 Shell=.trpm
518 Open=%cd %p/trpm://
519 View=%view{ascii} /usr/lib/mc/ext.d/package.sh view trpm
520
521 # RPM packages (SuSE uses *.spm for source packages)
522 [src.rpm]
523 Regex=\.(src\.rpm|spm)$
524 Open=%cd %p/rpm://
525 View=%view{ascii} /usr/lib/mc/ext.d/package.sh view src.rpm
526
527 [rpm]
528 Shell=.rpm
529 Open=%cd %p/rpm://
530 View=%view{ascii} /usr/lib/mc/ext.d/package.sh view rpm
531
532 [deb]
533 Regex=\.u?deb$
534 Open=%cd %p/deb://
535 View=%view{ascii} /usr/lib/mc/ext.d/package.sh view deb
536
537 [dpkg]
538 Shell=.debd
539 Open=%cd %p/debd://
540 View=%view{ascii} /usr/lib/mc/ext.d/package.sh view debd
541
542 [apt]
543 Shell=.deba
544 Open=%cd %p/deba://
545 Ciew=%view{ascii} /usr/lib/mc/ext.d/package.sh view deba
546
547 [ISO9660]
548 Shell=.iso
549 ShellIgnoreCase=true
550 Open=%cd %p/iso9660://
551 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view iso9660
552
553 [ar]
554 Regex=\.s?a$
555 Open=%cd %p/uar://
556 #Open=%view{ascii} ar tv %f
557 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view ar
558
559 [gplib]
560 Shell=.lib
561 ShellIgnoreCase=true
562 Open=%cd %p/ulib://
563 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lib
564
565 ### Sources ###
566
567 [C/C++]
568 Regex=\.(c|cc|cpp|cxx|c\+\+)$
569 RegexIgnoreCase=true
570 Include=editor
571
572 [C/C++ header]
573 Regex=\.(h|hh|hpp|hxx|h\+\+)$
574 RegexIgnoreCase=true
575 Include=editor
576
577 [Fortran]
578 Shell=.f
579 ShellIgnoreCase=true
580 Include=editor
581
582 [Assembler]
583 Regex=\.(s|asm)$
584 RegexIgnoreCase=true
585 Include=editor
586
587 [Typescript]
588 Shell=.ts
589 ShellIgnoreCase=true
590 Type=^Java source
591 Include=editor
592
593 # .so libraries
594 [so]
595 Regex=\.(so|so\.[0-9\.]*)$
596 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view so
597
598
599 ### Documentation ###
600
601 #[Texinfo]
602 #Regex=\.(te?xi|texinfo)$
603
604 [info-by-shell]
605 Shell=.info
606 Open=/usr/lib/mc/ext.d/text.sh open info
607
608 # Exception: .3gp are video files, not manual pages
609 [3gp]
610 Shell=.3gp
611 ShellIgnoreCase=true
612 Type=^ISO Media.*3GPP
613 Include=video
614
615 # Troff with me macros.
616 # Exception - "read.me" is not a nroff file.
617 [read.me]
618 Shell=read.me
619 Open=
620 View=
621
622 [troff]
623 Shell=.me
624 Open=/usr/lib/mc/ext.d/text.sh open nroff.me %var{PAGER:more}
625 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.me %var{PAGER:more}
626
627 [roff with ms macros]
628 Shell=.ms
629 Open=/usr/lib/mc/ext.d/text.sh open nroff.ms %var{PAGER:more}
630 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.ms %var{PAGER:more}
631
632 # Manual page
633
634 [man.lz]
635 Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz$
636 Open=/usr/lib/mc/ext.d/text.sh open man.lz %var{PAGER:more}
637 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz %var{PAGER:more}
638
639 [man.lz4]
640 Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz4$
641 Open=/usr/lib/mc/ext.d/text.sh open man.lz4 %var{PAGER:more}
642 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz4 %var{PAGER:more}
643
644 [man.lzma]
645 Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
646 Open=/usr/lib/mc/ext.d/text.sh open man.lzma %var{PAGER:more}
647 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lzma %var{PAGER:more}
648
649 [man.xz]
650 Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
651 Open=/usr/lib/mc/ext.d/text.sh open man.xz %var{PAGER:more}
652 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.xz %var{PAGER:more}
653
654 [man.zst]
655 Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.zst$
656 Open=/usr/lib/mc/ext.d/text.sh open man.zst %var{PAGER:more}
657 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.zst %var{PAGER:more}
658
659 # Perl pod page
660 [pod]
661 Shell=.pod
662 Open=/usr/lib/mc/ext.d/text.sh open pod %var{PAGER:more}
663 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view pod %var{PAGER:more}
664
665 [chm]
666 Shell=.chm
667 ShellIgnoreCase=true
668 Open=/usr/lib/mc/ext.d/text.sh open chm
669
670 ### Images ###
671
672 [xcf]
673 Shell=.xcf
674 Open=/usr/lib/mc/ext.d/image.sh open xcf
675
676 [xbm]
677 Shell=.xbm
678 Open=/usr/lib/mc/ext.d/image.sh open xbm
679
680 [xpm]
681 Shell=.xpm
682 Include=image
683
684 [ico]
685 Shell=.ico
686 Include=image
687
688 [svg]
689 Shell=.svg
690 ShellIgnoreCase=true
691 View=%view{ascii} /usr/lib/mc/ext.d/image.sh view svg
692 Open=/usr/lib/mc/ext.d/image.sh open svg
693
694
695 ### Sound files ###
696
697 [sound]
698 Regex=\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$
699 RegexIgnoreCase=true
700 Open=/usr/lib/mc/ext.d/sound.sh open common
701 View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view common
702
703 [mod]
704 Regex=\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
705 RegexIgnoreCase=true
706 Open=/usr/lib/mc/ext.d/sound.sh open mod
707
708 [wav22]
709 Shell=.waw22
710 ShellIgnoreCase=true
711 Open=/usr/lib/mc/ext.d/sound.sh open wav22
712
713 [mp3]
714 Shell=.mp3
715 ShellIgnoreCase=true
716 Open=/usr/lib/mc/ext.d/sound.sh open mp3
717 View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view mp3
718
719 [ogg]
720 Regex=\.og[gax]$
721 RegexIgnoreCase=true
722 Open=/usr/lib/mc/ext.d/sound.sh open ogg
723 View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view ogg
724
725 [opus]
726 Shell=.opus
727 ShellIgnoreCase=true
728 Open=/usr/lib/mc/ext.d/sound.sh open opus
729 View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view opus
730
731 [midi]
732 Regex=\.(midi?|rmid?)$
733 RegexIgnoreCase=true
734 Open=/usr/lib/mc/ext.d/sound.sh open midi
735
736 [wma]
737 Shell=.wma
738 ShellIgnoreCase=true
739 Open=/usr/lib/mc/ext.d/sound.sh open wma
740 View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view wma
741
742 # Play list
743 [playlist]
744 Regex=\.(m3u|pls)$
745 RegexIgnoreCase=true
746 Open=/usr/lib/mc/ext.d/sound.sh open playlist
747
748
749 ### Video ###
750
751 [avi]
752 Shell=.avi
753 ShellIgnoreCase=true
754 Include=video
755
756 [asf]
757 Regex=\.as[fx]$
758 RegexIgnoreCase=true
759 Include=video
760
761 [divx]
762 Shell=.divx
763 ShellIgnoreCase=true
764 Include=video
765
766 [mkv]
767 Shell=.mkv
768 ShellIgnoreCase=true
769 Include=video
770
771 [mov]
772 Regex=\.(mov|qt)$
773 RegexIgnoreCase=true
774 Include=video
775
776 [mp4]
777 Regex=\.(mp4|m4v|mpe?g)$
778 RegexIgnoreCase=true
779 Include=video
780
781 # MPEG-2 TS container + H.264 codec
782 [mts]
783 Shell=.mts
784 ShellIgnoreCase=true
785 Include=video
786
787 [ts]
788 Shell=.ts
789 ShellIgnoreCase=true
790 Include=video
791
792 [bob]
793 Shell=.vob
794 ShellIgnoreCase=true
795 Include=video
796
797 [wmv]
798 Shell=.wmv
799 ShellIgnoreCase=true
800 Include=video
801
802 [fli]
803 Regex=\.fl[icv]$
804 RegexIgnoreCase=true
805 Include=video
806
807 [ogv]
808 Shell=.ogv
809 ShellIgnoreCase=true
810 Include=video
811
812 [realaudio]
813 Regex=\.ra?m$
814 RegexIgnoreCase=true
815 Open=/usr/lib/mc/ext.d/video.sh open ram
816
817 [webm-by-shell]
818 Shell=.webm
819 ShellIgnoreCase=true
820 Include=video
821
822
823 ### Documents ###
824
825 [html]
826 Regex=\.html?$
827 RegexIgnoreCase=true
828 Open=/usr/lib/mc/ext.d/web.sh open html
829 View=%view{ascii} /usr/lib/mc/ext.d/web.sh view html
830
831 [StarOffice-5.2]
832 Shell=.sdw
833 ShellIgnoreCase=true
834 Open=/usr/lib/mc/ext.d/doc.sh open ooffice
835
836 # StarOffice 6 and OpenOffice.org formats
837 [OpenOffice.org]
838 Regex=\.(odt|fodt|ott|sxw|stw|ods|fods|ots|sxc|stc|odp|fodp|otp|sxi|sti|odg|fodg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
839 RegexIgnoreCase=true
840 Open=/usr/lib/mc/ext.d/doc.sh open ooffice
841 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view odt
842
843 [AbiWord]
844 Shell=.abw
845 ShellIgnoreCase=true
846 Open=/usr/lib/mc/ext.d/doc.sh open abw
847
848 [Gnumeric]
849 Shell=.gnumeric
850 ShellIgnoreCase=true
851 Open=/usr/lib/mc/ext.d/doc.sh open gnumeric
852
853 [rtf]
854 Shell=.rtf
855 ShellIgnoreCase=true
856 Open=/usr/lib/mc/ext.d/doc.sh open msdoc
857
858 # Microsoft Word Document
859 [msdoc-by-shell]
860 Regex=\.(do[ct]|wri|docx)$
861 RegexIgnoreCase=true
862 Open=/usr/lib/mc/ext.d/doc.sh open msdoc
863 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc
864
865 # Microsoft Excel Worksheet
866 [msxls-by-shell]
867 Regex=\.(xl[sw]|xlsx)$
868 RegexIgnoreCase=true
869 Open=/usr/lib/mc/ext.d/doc.sh open msxls
870 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls
871
872 # Microsoft PowerPoint Presentation
873 [msppt]
874 Regex=\.(pp[ts]|pptx)$
875 RegexIgnoreCase=true
876 Open=/usr/lib/mc/ext.d/doc.sh open msppt
877 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msppt
878
879 [dvi]
880 Shell=.dvi
881 ShellIgnoreCase=true
882 Open=/usr/lib/mc/ext.d/doc.sh open dvi
883 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view dvi
884
885 [tex]
886 Shell=.tex
887 ShellIgnoreCase=true
888 Include=editor
889
890 [markdown]
891 Regex=\.(md|mkd)$
892 ShellIgnoreCase=true
893 Include=editor
894
895 [djvu]
896 Regex=\.djvu?$
897 RegexIgnoreCase=true
898 Open=/usr/lib/mc/ext.d/doc.sh open djvu
899 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view djvu
900
901 # Comic Books
902 [cbr]
903 Regex=\.cb[zr]$
904 RegexIgnoreCase=true
905 Open=/usr/lib/mc/ext.d/doc.sh open comic
906
907 # Epup, mobi, fb2
908 [ebook]
909 Regex=\.(epub|mobi|fb2)$
910 RegexIgnoreCase=true
911 Open=/usr/lib/mc/ext.d/doc.sh open ebook
912 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view ebook
913
914
915 ### Miscellaneous ###
916
917 # Compiled Java classes
918 [javaclass]
919 Shell=.class
920 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view javaclass
921
922 [Imakefile]
923 Shell=Imakefile
924 Open=xmkmf -a
925
926 # Makefile.PL (MakeMaker)
927 [Makefile.pl]
928 Regex=^Makefile\.(PL|pl)$
929 Open=%var{PERL:perl} %f
930
931 [Makefile]
932 Regex=^[Mm]akefile
933 Open=make -f %f %{Enter parameters}
934
935 [dbf]
936 Shell=.dbf
937 ShellIgnoreCase=true
938 Open=/usr/lib/mc/ext.d/misc.sh open dbf
939 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view dbf
940
941 # REXX script
942 [rexx]
943 Regex=\.(rexx?|cmd)$
944 Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
945
946 # Disk images for Commodore computers (VIC20, C64, C128)
947 [d64]
948 Shell=.d64
949 ShellIgnoreCase=true
950 Open=%cd %p/uc1541://
951 View=%view{ascii} c1541 %f -list
952
953 # Glade, a user interface designer for GTK+ and GNOME
954 [glade]
955 Shell=.glade
956 ShellIgnoreCase=true
957 Open=/usr/lib/mc/ext.d/misc.sh open glade
958
959 # Gettext Catalogs
960 [mo]
961 Regex=.g?mo$
962 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view mo
963
964 [po]
965 Shell=.po
966 Open=/usr/lib/mc/ext.d/misc.sh open po
967
968 [lyx]
969 Shell=.lyx
970 ShellIgnoreCase=true
971 Open=/usr/lib/mc/ext.d/misc.sh open lyx
972 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lyx
973
974 [torrent]
975 Shell=.torrent
976 ShellIgnoreCase=true
977 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view torrent
978
979
980 ### Plain compressed files ###
981
982 [ace]
983 Shell=.ace
984 ShellIgnoreCase=true
985 Open=%cd %p/uace://
986 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ace
987
988 [arc]
989 Shell=.arc
990 ShellIgnoreCase=true
991 Open=%cd %p/uarc://
992 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arc
993
994 [zip-by-shell]
995 Shell=.zip
996 ShellIgnoreCase=true
997 Open=%cd %p/uzip://
998 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
999
1000 [zoo]
1001 Shell=.zoo
1002 ShellIgnoreCase=true
1003 Open=%cd %p/uzoo://
1004 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zoo
1005
1006 [lz4]
1007 Shell=.lz4
1008 ShellIgnoreCase=true
1009 Open=/usr/lib/mc/ext.d/archive.sh view lz4 %var{PAGER:more}
1010 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz4
1011
1012 [wim]
1013 Shell=.wim
1014 ShellIgnoreCase=true
1015 Open=%cd %p/uwim://
1016 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view wim
1017
1018
1019 ######### Files by Type #########
1020
1021 ### Archives ###
1022
1023 [mailbox]
1024 Type=^ASCII\ mail\ text
1025 Open=%cd %p/mailfs://
1026
1027
1028 ### Sources ###
1029
1030 # Object
1031 [elf]
1032 Type=^ELF
1033 #Open=%var{PAGER:more} %f
1034 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view elf
1035
1036
1037 ### Documentation ###
1038
1039 # GNU Info page
1040 [info-by-type]
1041 Type=^Info\ text
1042 Open=/usr/lib/mc/ext.d/text.sh open info
1043
1044 # Manual page - compressed
1045 [troff.gz]
1046 Type=troff.*gzip compressed
1047 Open=/usr/lib/mc/ext.d/text.sh open man.gz %var{PAGER:more}
1048 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.gz %var{PAGER:more}
1049
1050 [troff.bzip]
1051 Type=troff.*bzip compressed
1052 Open=/usr/lib/mc/ext.d/text.sh open man.bz %var{PAGER:more}
1053 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz %var{PAGER:more}
1054
1055 [troff.bzip2]
1056 Type=troff.*bzip2 compressed
1057 Open=/usr/lib/mc/ext.d/text.sh open man.bz2 %var{PAGER:more}
1058 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz2 %var{PAGER:more}
1059
1060 # Manual page
1061 [man]
1062 Type=troff or preprocessor input
1063 Open=/usr/lib/mc/ext.d/text.sh open man %var{PAGER:more}
1064 View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man %var{PAGER:more}
1065
1066
1067 ### Images ###
1068
1069 [gif]
1070 Type=^GIF
1071 Include=image
1072
1073 [jpeg]
1074 Type=^JPEG
1075 Include=image
1076
1077 [bitmap]
1078 Type=^PC\ bitmap
1079 Include=image
1080
1081 [png]
1082 Type=^PNG
1083 Include=image
1084
1085 [jng]
1086 Type=^JNG
1087 Include=image
1088
1089 [mng]
1090 Type=^MNG
1091 Include=image
1092
1093 [tiff]
1094 Type=^TIFF
1095 Include=image
1096
1097 [rbm]
1098 Type=^PBM
1099 Include=image
1100
1101 [pgm]
1102 Type=^PGM
1103 Include=image
1104
1105 [ppm]
1106 Type=^PPM
1107 Include=image
1108
1109 [netpbm]
1110 Type=^Netpbm
1111 Include=image
1112
1113
1114 ### Video ###
1115
1116 [webm-by-type]
1117 Type=WebM
1118 Include=video
1119
1120
1121 ### Documents ###
1122
1123 [postscript]
1124 Type=^PostScript
1125 Open=/usr/lib/mc/ext.d/doc.sh open ps
1126 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view ps
1127
1128 [pdf]
1129 Type=^PDF
1130 Open=/usr/lib/mc/ext.d/doc.sh open pdf
1131 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view pdf
1132
1133 # Microsoft Word Document
1134 [msdoc-by-type]
1135 Type=^Microsoft\ Word
1136 Open=/usr/lib/mc/ext.d/doc.sh open msdoc
1137 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc
1138
1139 # Microsoft Excel Worksheet
1140 [msxls-by-type]
1141 Type=^Microsoft\ Excel
1142 Open=/usr/lib/mc/ext.d/doc.sh open msxls
1143 View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls
1144
1145 # Use OpenOffice.org/LibreOffice to open any MS Office documents
1146 [mso-doc-1]
1147 Type=^Microsoft\ Office\ Document
1148 Open=/usr/lib/mc/ext.d/doc.sh open ooffice
1149
1150 [mso-doc-2]
1151 Type=^Microsoft\ OOXML
1152 Open=/usr/lib/mc/ext.d/doc.sh open ooffice
1153
1154 [framemaker]
1155 Type=^FrameMaker
1156 Open=/usr/lib/mc/ext.d/doc.sh open framemaker
1157
1158
1159 ### Miscellaneous ###
1160
1161 [sqlite3.db]
1162 Type=^SQLite 3.x database
1163 Open=/usr/lib/mc/ext.d/misc.sh open sqlite
1164 View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view sqlite
1165
1166
1167 ### Plain compressed files ###
1168
1169 [gzip]
1170 Type=\(gzip compressed
1171 Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more}
1172 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
1173
1174 [bzip]
1175 Type=\(bzip compressed
1176 Open=/usr/lib/mc/ext.d/archive.sh view bzip %var{PAGER:more}
1177 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bzip
1178
1179 [bzip2]
1180 Type=\(bzip2 compressed
1181 Open=/usr/lib/mc/ext.d/archive.sh view bzip2 %var{PAGER:more}
1182 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2
1183
1184 [compress]
1185 Type=\(compress'd
1186 Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more}
1187 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
1188
1189 [lz]
1190 Type=\(lzip compressed
1191 Open=/usr/lib/mc/ext.d/archive.sh view lz %var{PAGER:more}
1192 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz
1193
1194 [lzma]
1195 Type=\(LZMA compressed
1196 Open=/usr/lib/mc/ext.d/archive.sh view lzma %var{PAGER:more}
1197 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lzma
1198
1199 [xz]
1200 Type=\(XZ compressed
1201 Open=/usr/lib/mc/ext.d/archive.sh view xz %var{PAGER:more}
1202 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz
1203
1204 [zstd]
1205 Type=\(Zstandard compressed
1206 Open=/usr/lib/mc/ext.d/archive.sh view zst %var{PAGER:more}
1207 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst
1208
1209 [zip-by-type]
1210 Type=\(Zip archive
1211 Open=%cd %p/uzip://
1212 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
1213
1214 [jar]
1215 Type=\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
1216 TypeIgnoreCase=true
1217 Open=%cd %p/uzip://
1218 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
1219
1220 [lha]
1221 Type=^LHa\ .*archive
1222 Open=%cd %p/ulha://
1223 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lha
1224
1225 [pak]
1226 Type=^PAK\ .*archive
1227 Open=%cd %p/unar://
1228 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view pak
1229
1230 # Parity Archive
1231 [par2]
1232 Type=^Parity\ Archive\ Volume\ Set
1233 Open=/usr/lib/mc/ext.d/archive.sh open par2
1234
1235
1236 ######### Includes #########
1237 # Includes should be at end of the bindings
1238
1239 [Include/tar.gz]
1240 Open=%cd %p/utar://
1241 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.gz
1242
1243 [Include/cpio]
1244 Open=%cd %p/ucpio://
1245 View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio
1246
1247 [Include/editor]
1248 Open=%var{EDITOR:editor} %f
1249
1250 [Include/image]
1251 Open=/usr/lib/mc/ext.d/image.sh open ALL_FORMATS
1252 View=%view{ascii} /usr/lib/mc/ext.d/image.sh view ALL_FORMATS
1253
1254 [Include/video]
1255 Open=/usr/lib/mc/ext.d/video.sh open ALL_FORMATS
1256 View=%view{ascii} /usr/lib/mc/ext.d/video.sh view ALL_FORMATS
1257
1258
1259 ######### Default #########
1260
1261 # Default target for anything not described above
1262 [Default]
1263 Open=
1264 View=
1265
1266 ### EOF ###