Ticket #4434: mc.ext.ini

File mc.ext.ini, 25.4 KB (added by humeniuc, 22 months ago)

My mc.ext.ini file

Line 
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]
187Version=4.0
188
189### GIT Repo ###
190[gitfs changeset]
191Regex=^\[git\]
192Open=%cd %p/changesetfs://
193View=%cd %p/patchsetfs://
194
195### Archives ###
196# Since we use "file -z", we should use Regex and Shell first, then Type.
197
198
199######### Files by name (Regex and Shell) #########
200
201# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
202[tar.gzip]
203Regex=\.t([gp]?z|ar\.g?[zZ])$
204Include=tar.gz
205
206[ipk]
207Shell=.ipk
208Include=tar.gz
209
210[gem]
211Shell=.gem
212Include=tar.gz
213
214[tar.bzip]
215Shell=.tar.bz
216# Open=%cd %p/utar://
217View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip
218
219[tar.bzip2]
220Regex=\.t(ar\.bz2|bz2?|b2)$
221Open=%cd %p/utar://
222View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip2
223
224# .tar.lzma, .tlz
225[tar.lzma]
226Regex=\.t(ar\.lzma|lz)$
227Open=%cd %p/utar://
228View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lzma
229
230[tar.lz]
231Shell=.tar.lz
232Open=%cd %p/utar://
233View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz
234
235# .tar.lz4, .tlz4
236[tar.lz4]
237Regex=\.t(ar\.lz4|lz4)$
238Open=%cd %p/utar://
239View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz4
240
241# .tar.xz, .txz
242[tar.xz]
243Regex=\.t(ar\.xz|xz)$
244Open=%cd %p/utar://
245View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.xz
246
247# .tar.zst, .tzst
248[tar.zst]
249Regex=\.t(ar\.zst|zst)$
250Open=%cd %p/utar://
251View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.zst
252
253# .tar.F - used on QNX
254[tar.F]
255Shell=.tar.F
256# Open=%cd %p/utar://
257View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.F
258
259# .qpr/.qpk - QNX Neutrino package installer files
260[tar.qpr]
261Regex=\.qp[rk]$
262Open=%cd %p/utar://
263View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.qpr
264
265[tar]
266Shell=.tar
267ShellIgnoreCase=true
268Open=%cd %p/utar://
269View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar
270
271[arj]
272Regex=\.a(rj|[0-9][0-9])$
273RegexIgnoreCase=true
274Open=%cd %p/uarj://
275View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arj
276
277[cab]
278Shell=.cab
279ShellIgnoreCase=true
280Open=%cd %p/ucab://
281View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cab
282
283[ha]
284Shell=.ha
285ShellIgnoreCase=true
286Open=%cd %p/uha://
287View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ha
288
289[rar]
290Regex=\.r(ar|[0-9][0-9])$
291RegexIgnoreCase=true
292Open=%cd %p/urar://
293View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view rar
294
295# ALZip
296[alz]
297Shell=.alz
298ShellIgnoreCase=true
299Open=%cd %p/ualz://
300View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view alz
301
302[cpio.Z]
303Shell=.cpio.Z
304Open=%cd %p/ucpio://
305View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.z
306
307[cpio.lz]
308Shell=.cpio.lz
309Open=%cd %p/ucpio://
310View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz
311
312[cpio.lz4]
313Shell=.cpio.lz4
314Open=%cd %p/ucpio://
315View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz4
316
317[cpio.xz]
318Shell=.cpio.xz
319Open=%cd %p/ucpio://
320View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.xz
321
322[cpio.zst]
323Shell=.cpio.zst
324Open=%cd %p/ucpio://
325View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.zst
326
327[cpio.gz]
328Shell=.cpio.gz
329Open=%cd %p/ucpio://
330View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.gz
331
332[cpio]
333Shell=.cpio
334ShellIgnoreCase=true
335Include=cpio
336
337[initrd]
338Regex=^(initramfs.*\.img|initrd(-.+)?\.img(-.+)?)$
339Include=cpio
340
341[7zip]
342Shell=.7z
343ShellIgnoreCase=true
344Open=%cd %p/u7z://
345View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view 7z
346
347[patch]
348Regex=\.(diff|patch)$
349Open=%cd %p/patchfs://
350View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view cat
351
352[patch.gz]
353Regex=\.(diff|patch)\.(gz|Z)$
354Open=%cd %p/patchfs://
355View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
356
357[patch.bz2]
358Regex=\.(diff|patch)\.bz2$
359Open=%cd %p/patchfs://
360View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2
361
362[patch.xz]
363Regex=\.(diff|patch)\.xz$
364Open=%cd %p/patchfs://
365View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz
366
367[patch.zst]
368Regex=\.(diff|patch)\.zst$
369Open=%cd %p/patchfs://
370View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst
371
372[ls-lR]
373Regex=(^|\.)ls-?lR(\.gz|Z|bz2)$
374Open=%cd %p/lslR://
375
376[trpm]
377Shell=.trpm
378Open=%cd %p/trpm://
379View=%view{ascii} /usr/lib/mc/ext.d/package.sh view trpm
380
381# RPM packages (SuSE uses *.spm for source packages)
382[src.rpm]
383Regex=\.(src\.rpm|spm)$
384Open=%cd %p/rpm://
385View=%view{ascii} /usr/lib/mc/ext.d/package.sh view src.rpm
386
387[rpm]
388Shell=.rpm
389Open=%cd %p/rpm://
390View=%view{ascii} /usr/lib/mc/ext.d/package.sh view rpm
391
392[deb]
393Regex=\.u?deb$
394Open=%cd %p/deb://
395View=%view{ascii} /usr/lib/mc/ext.d/package.sh view deb
396
397[dpkg]
398Shell=.debd
399Open=%cd %p/debd://
400View=%view{ascii} /usr/lib/mc/ext.d/package.sh view debd
401
402[apt]
403Shell=.deba
404Open=%cd %p/deba://
405Ciew=%view{ascii} /usr/lib/mc/ext.d/package.sh view deba
406
407[ISO9660]
408Shell=.iso
409ShellIgnoreCase=true
410Open=%cd %p/iso9660://
411View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view iso9660
412
413[ar]
414Regex=\.s?a$
415Open=%cd %p/uar://
416#Open=%view{ascii} ar tv %f
417View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view ar
418
419[gplib]
420Shell=.lib
421ShellIgnoreCase=true
422Open=%cd %p/ulib://
423View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lib
424
425### Sources ###
426
427[C/C++]
428Regex=\.(c|cc|cpp|cxx|c\+\+)$
429RegexIgnoreCase=true
430Include=editor
431
432[C/C++ header]
433Regex=\.(h|hh|hpp|hxx|h\+\+)$
434RegexIgnoreCase=true
435Include=editor
436
437[Fortran]
438Shell=.f
439ShellIgnoreCase=true
440Include=editor
441
442[Assembler]
443Regex=\.(s|asm)$
444RegexIgnoreCase=true
445Include=editor
446
447[Typescript]
448Shell=.ts
449ShellIgnoreCase=true
450Type=^Java source
451Include=editor
452
453# .so libraries
454[so]
455Regex=\.(so|so\.[0-9\.]*)$
456View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view so
457
458
459### Documentation ###
460
461#[Texinfo]
462#Regex=\.(te?xi|texinfo)$
463
464[info-by-shell]
465Shell=.info
466Open=/usr/lib/mc/ext.d/text.sh open info
467
468# Exception: .3gp are video files, not manual pages
469[3gp]
470Shell=.3gp
471ShellIgnoreCase=true
472Type=^ISO Media.*3GPP
473Include=video
474
475# Troff with me macros.
476# Exception - "read.me" is not a nroff file.
477[read.me]
478Shell=read.me
479Open=
480View=
481
482[troff]
483Shell=.me
484Open=/usr/lib/mc/ext.d/text.sh open nroff.me %var{PAGER:more}
485View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.me %var{PAGER:more}
486
487[roff with ms macros]
488Shell=.ms
489Open=/usr/lib/mc/ext.d/text.sh open nroff.ms %var{PAGER:more}
490View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.ms %var{PAGER:more}
491
492# Manual page
493
494[man.lz]
495Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz$
496Open=/usr/lib/mc/ext.d/text.sh open man.lz %var{PAGER:more}
497View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz %var{PAGER:more}
498
499[man.lz4]
500Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz4$
501Open=/usr/lib/mc/ext.d/text.sh open man.lz4 %var{PAGER:more}
502View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz4 %var{PAGER:more}
503
504[man.lzma]
505Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
506Open=/usr/lib/mc/ext.d/text.sh open man.lzma %var{PAGER:more}
507View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lzma %var{PAGER:more}
508
509[man.xz]
510Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
511Open=/usr/lib/mc/ext.d/text.sh open man.xz %var{PAGER:more}
512View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.xz %var{PAGER:more}
513
514[man.zst]
515Regex=([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.zst$
516Open=/usr/lib/mc/ext.d/text.sh open man.zst %var{PAGER:more}
517View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.zst %var{PAGER:more}
518
519# Perl pod page
520[pod]
521Shell=.pod
522Open=/usr/lib/mc/ext.d/text.sh open pod %var{PAGER:more}
523View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view pod %var{PAGER:more}
524
525[chm]
526Shell=.chm
527ShellIgnoreCase=true
528Open=/usr/lib/mc/ext.d/text.sh open chm
529
530### Images ###
531
532[xcf]
533Shell=.xcf
534Open=/usr/lib/mc/ext.d/image.sh open xcf
535
536[xbm]
537Shell=.xbm
538Open=/usr/lib/mc/ext.d/image.sh open xbm
539
540[xpm]
541Shell=.xpm
542Include=image
543
544[ico]
545Shell=.ico
546Include=image
547
548[svg]
549Shell=.svg
550ShellIgnoreCase=true
551View=%view{ascii} /usr/lib/mc/ext.d/image.sh view svg
552Open=/usr/lib/mc/ext.d/image.sh open svg
553
554
555### Sound files ###
556
557[sound]
558Regex=\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$
559RegexIgnoreCase=true
560Open=/usr/lib/mc/ext.d/sound.sh open common
561View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view common
562
563[mod]
564Regex=\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$
565RegexIgnoreCase=true
566Open=/usr/lib/mc/ext.d/sound.sh open mod
567
568[wav22]
569Shell=.waw22
570ShellIgnoreCase=true
571Open=/usr/lib/mc/ext.d/sound.sh open wav22
572
573[mp3]
574Shell=.mp3
575ShellIgnoreCase=true
576Open=/usr/lib/mc/ext.d/sound.sh open mp3
577View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view mp3
578
579[ogg]
580Regex=\.og[gax]$
581RegexIgnoreCase=true
582Open=/usr/lib/mc/ext.d/sound.sh open ogg
583View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view ogg
584
585[opus]
586Shell=.opus
587ShellIgnoreCase=true
588Open=/usr/lib/mc/ext.d/sound.sh open opus
589View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view opus
590
591[midi]
592Regex=\.(midi?|rmid?)$
593RegexIgnoreCase=true
594Open=/usr/lib/mc/ext.d/sound.sh open midi
595
596[wma]
597Shell=.wma
598ShellIgnoreCase=true
599Open=/usr/lib/mc/ext.d/sound.sh open wma
600View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view wma
601
602# Play list
603[playlist]
604Regex=\.(m3u|pls)$
605RegexIgnoreCase=true
606Open=/usr/lib/mc/ext.d/sound.sh open playlist
607
608
609### Video ###
610
611[avi]
612Shell=.avi
613ShellIgnoreCase=true
614Include=video
615
616[asf]
617Regex=\.as[fx]$
618RegexIgnoreCase=true
619Include=video
620
621[divx]
622Shell=.divx
623ShellIgnoreCase=true
624Include=video
625
626[mkv]
627Shell=.mkv
628ShellIgnoreCase=true
629Include=video
630
631[mov]
632Regex=\.(mov|qt)$
633RegexIgnoreCase=true
634Include=video
635
636[mp4]
637Regex=\.(mp4|m4v|mpe?g)$
638RegexIgnoreCase=true
639Include=video
640
641# MPEG-2 TS container + H.264 codec
642[mts]
643Shell=.mts
644ShellIgnoreCase=true
645Include=video
646
647[ts]
648Shell=.ts
649ShellIgnoreCase=true
650Include=video
651
652[bob]
653Shell=.vob
654ShellIgnoreCase=true
655Include=video
656
657[wmv]
658Shell=.wmv
659ShellIgnoreCase=true
660Include=video
661
662[fli]
663Regex=\.fl[icv]$
664RegexIgnoreCase=true
665Include=video
666
667[ogv]
668Shell=.ogv
669ShellIgnoreCase=true
670Include=video
671
672[realaudio]
673Regex=\.ra?m$
674RegexIgnoreCase=true
675Open=/usr/lib/mc/ext.d/video.sh open ram
676
677[webm-by-shell]
678Shell=.webm
679ShellIgnoreCase=true
680Include=video
681
682
683### Documents ###
684
685[html]
686Regex=\.html?$
687RegexIgnoreCase=true
688Open=/usr/lib/mc/ext.d/web.sh open html
689View=%view{ascii} /usr/lib/mc/ext.d/web.sh view html
690
691[StarOffice-5.2]
692Shell=.sdw
693ShellIgnoreCase=true
694Open=/usr/lib/mc/ext.d/doc.sh open ooffice
695
696# StarOffice 6 and OpenOffice.org formats
697[OpenOffice.org]
698Regex=\.(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)$
699RegexIgnoreCase=true
700Open=/usr/lib/mc/ext.d/doc.sh open ooffice
701View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view odt
702
703[AbiWord]
704Shell=.abw
705ShellIgnoreCase=true
706Open=/usr/lib/mc/ext.d/doc.sh open abw
707
708[Gnumeric]
709Shell=.gnumeric
710ShellIgnoreCase=true
711Open=/usr/lib/mc/ext.d/doc.sh open gnumeric
712
713[rtf]
714Shell=.rtf
715ShellIgnoreCase=true
716Open=/usr/lib/mc/ext.d/doc.sh open msdoc
717
718# Microsoft Word Document
719[msdoc-by-shell]
720Regex=\.(do[ct]|wri|docx)$
721RegexIgnoreCase=true
722Open=/usr/lib/mc/ext.d/doc.sh open msdoc
723View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc
724
725# Microsoft Excel Worksheet
726[msxls-by-shell]
727Regex=\.(xl[sw]|xlsx)$
728RegexIgnoreCase=true
729Open=/usr/lib/mc/ext.d/doc.sh open msxls
730View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls
731
732# Microsoft PowerPoint Presentation
733[msppt]
734Regex=\.(pp[ts]|pptx)$
735RegexIgnoreCase=true
736Open=/usr/lib/mc/ext.d/doc.sh open msppt
737View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msppt
738
739[dvi]
740Shell=.dvi
741ShellIgnoreCase=true
742Open=/usr/lib/mc/ext.d/doc.sh open dvi
743View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view dvi
744
745[tex]
746Shell=.tex
747ShellIgnoreCase=true
748Include=editor
749
750[markdown]
751Regex=\.(md|mkd)$
752ShellIgnoreCase=true
753Include=editor
754
755[djvu]
756Regex=\.djvu?$
757RegexIgnoreCase=true
758Open=/usr/lib/mc/ext.d/doc.sh open djvu
759View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view djvu
760
761# Comic Books
762[cbr]
763Regex=\.cb[zr]$
764RegexIgnoreCase=true
765Open=/usr/lib/mc/ext.d/doc.sh open comic
766
767# Epup, mobi, fb2
768[ebook]
769Regex=\.(epub|mobi|fb2)$
770RegexIgnoreCase=true
771Open=/usr/lib/mc/ext.d/doc.sh open ebook
772View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view ebook
773
774
775### Miscellaneous ###
776
777# Compiled Java classes
778[javaclass]
779Shell=.class
780View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view javaclass
781
782[Imakefile]
783Shell=Imakefile
784Open=xmkmf -a
785
786# Makefile.PL (MakeMaker)
787[Makefile.pl]
788Regex=^Makefile\.(PL|pl)$
789Open=%var{PERL:perl} %f
790
791[Makefile]
792Regex=^[Mm]akefile
793Open=make -f %f %{Enter parameters}
794
795[dbf]
796Shell=.dbf
797ShellIgnoreCase=true
798Open=/usr/lib/mc/ext.d/misc.sh open dbf
799View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view dbf
800
801# REXX script
802[rexx]
803Regex=\.(rexx?|cmd)$
804Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
805
806# Disk images for Commodore computers (VIC20, C64, C128)
807[d64]
808Shell=.d64
809ShellIgnoreCase=true
810Open=%cd %p/uc1541://
811View=%view{ascii} c1541 %f -list
812
813# Glade, a user interface designer for GTK+ and GNOME
814[glade]
815Shell=.glade
816ShellIgnoreCase=true
817Open=/usr/lib/mc/ext.d/misc.sh open glade
818
819# Gettext Catalogs
820[mo]
821Regex=.g?mo$
822View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view mo
823
824[po]
825Shell=.po
826Open=/usr/lib/mc/ext.d/misc.sh open po
827
828[lyx]
829Shell=.lyx
830ShellIgnoreCase=true
831Open=/usr/lib/mc/ext.d/misc.sh open lyx
832View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lyx
833
834[torrent]
835Shell=.torrent
836ShellIgnoreCase=true
837View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view torrent
838
839
840### Plain compressed files ###
841
842[ace]
843Shell=.ace
844ShellIgnoreCase=true
845Open=%cd %p/uace://
846View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ace
847
848[arc]
849Shell=.arc
850ShellIgnoreCase=true
851Open=%cd %p/uarc://
852View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arc
853
854[zip-by-shell]
855Shell=.zip
856ShellIgnoreCase=true
857Open=%cd %p/uzip://
858View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
859
860[zoo]
861Shell=.zoo
862ShellIgnoreCase=true
863Open=%cd %p/uzoo://
864View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zoo
865
866[lz4]
867Shell=.lz4
868ShellIgnoreCase=true
869Open=/usr/lib/mc/ext.d/archive.sh view lz4 %var{PAGER:more}
870View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz4
871
872[wim]
873Shell=.wim
874ShellIgnoreCase=true
875Open=%cd %p/uwim://
876View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view wim
877
878
879######### Files by Type #########
880
881### Archives ###
882
883[mailbox]
884Type=^ASCII\ mail\ text
885Open=%cd %p/mailfs://
886
887
888### Sources ###
889
890# Object
891[elf]
892Type=^ELF
893#Open=%var{PAGER:more} %f
894View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view elf
895
896
897### Documentation ###
898
899# GNU Info page
900[info-by-type]
901Type=^Info\ text
902Open=/usr/lib/mc/ext.d/text.sh open info
903
904# Manual page - compressed
905[troff.gz]
906Type=troff.*gzip compressed
907Open=/usr/lib/mc/ext.d/text.sh open man.gz %var{PAGER:more}
908View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.gz %var{PAGER:more}
909
910[troff.bzip]
911Type=troff.*bzip compressed
912Open=/usr/lib/mc/ext.d/text.sh open man.bz %var{PAGER:more}
913View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz %var{PAGER:more}
914
915[troff.bzip2]
916Type=troff.*bzip2 compressed
917Open=/usr/lib/mc/ext.d/text.sh open man.bz2 %var{PAGER:more}
918View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz2 %var{PAGER:more}
919
920# Manual page
921[man]
922Type=troff or preprocessor input
923Open=/usr/lib/mc/ext.d/text.sh open man %var{PAGER:more}
924View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man %var{PAGER:more}
925
926
927### Images ###
928
929[gif]
930Type=^GIF
931Include=image
932
933[jpeg]
934Type=^JPEG
935Include=image
936
937[bitmap]
938Type=^PC\ bitmap
939Include=image
940
941[png]
942Type=^PNG
943Include=image
944
945[jng]
946Type=^JNG
947Include=image
948
949[mng]
950Type=^MNG
951Include=image
952
953[tiff]
954Type=^TIFF
955Include=image
956
957[rbm]
958Type=^PBM
959Include=image
960
961[pgm]
962Type=^PGM
963Include=image
964
965[ppm]
966Type=^PPM
967Include=image
968
969[netpbm]
970Type=^Netpbm
971Include=image
972
973
974### Video ###
975
976[webm-by-type]
977Type=WebM
978Include=video
979
980
981### Documents ###
982
983[postscript]
984Type=^PostScript
985Open=/usr/lib/mc/ext.d/doc.sh open ps
986View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view ps
987
988[pdf]
989Type=^PDF
990Open=/usr/lib/mc/ext.d/doc.sh open pdf
991View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view pdf
992
993# Microsoft Word Document
994[msdoc-by-type]
995Type=^Microsoft\ Word
996Open=/usr/lib/mc/ext.d/doc.sh open msdoc
997View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc
998
999# Microsoft Excel Worksheet
1000[msxls-by-type]
1001Type=^Microsoft\ Excel
1002Open=/usr/lib/mc/ext.d/doc.sh open msxls
1003View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls
1004
1005# Use OpenOffice.org/LibreOffice to open any MS Office documents
1006[mso-doc-1]
1007Type=^Microsoft\ Office\ Document
1008Open=/usr/lib/mc/ext.d/doc.sh open ooffice
1009
1010[mso-doc-2]
1011Type=^Microsoft\ OOXML
1012Open=/usr/lib/mc/ext.d/doc.sh open ooffice
1013
1014[framemaker]
1015Type=^FrameMaker
1016Open=/usr/lib/mc/ext.d/doc.sh open framemaker
1017
1018
1019### Miscellaneous ###
1020
1021[sqlite3.db]
1022Type=^SQLite 3.x database
1023Open=/usr/lib/mc/ext.d/misc.sh open sqlite
1024View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view sqlite
1025
1026
1027### Plain compressed files ###
1028
1029[gzip]
1030Type=\(gzip compressed
1031Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more}
1032View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
1033
1034[bzip]
1035Type=\(bzip compressed
1036Open=/usr/lib/mc/ext.d/archive.sh view bzip %var{PAGER:more}
1037View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bzip
1038
1039[bzip2]
1040Type=\(bzip2 compressed
1041Open=/usr/lib/mc/ext.d/archive.sh view bzip2 %var{PAGER:more}
1042View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2
1043
1044[compress]
1045Type=\(compress'd
1046Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more}
1047View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz
1048
1049[lz]
1050Type=\(lzip compressed
1051Open=/usr/lib/mc/ext.d/archive.sh view lz %var{PAGER:more}
1052View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz
1053
1054[lzma]
1055Type=\(LZMA compressed
1056Open=/usr/lib/mc/ext.d/archive.sh view lzma %var{PAGER:more}
1057View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lzma
1058
1059[xz]
1060Type=\(XZ compressed
1061Open=/usr/lib/mc/ext.d/archive.sh view xz %var{PAGER:more}
1062View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz
1063
1064[zstd]
1065Type=\(Zstandard compressed
1066Open=/usr/lib/mc/ext.d/archive.sh view zst %var{PAGER:more}
1067View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst
1068
1069[zip-by-type]
1070Type=\(Zip archive
1071Open=%cd %p/uzip://
1072View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
1073
1074[jar]
1075Type=\(Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\)
1076TypeIgnoreCase=true
1077Open=%cd %p/uzip://
1078View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
1079
1080[lha]
1081Type=^LHa\ .*archive
1082Open=%cd %p/ulha://
1083View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lha
1084
1085[pak]
1086Type=^PAK\ .*archive
1087Open=%cd %p/unar://
1088View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view pak
1089
1090# Parity Archive
1091[par2]
1092Type=^Parity\ Archive\ Volume\ Set
1093Open=/usr/lib/mc/ext.d/archive.sh open par2
1094
1095
1096######### Includes #########
1097# Includes should be at end of the bindings
1098
1099[Include/tar.gz]
1100Open=%cd %p/utar://
1101View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.gz
1102
1103[Include/cpio]
1104Open=%cd %p/ucpio://
1105View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio
1106
1107[Include/editor]
1108Open=%var{EDITOR:vi} %f
1109
1110[Include/image]
1111Open=/usr/lib/mc/ext.d/image.sh open ALL_FORMATS
1112View=%view{ascii} /usr/lib/mc/ext.d/image.sh view ALL_FORMATS
1113
1114[Include/video]
1115Open=/usr/lib/mc/ext.d/video.sh open ALL_FORMATS
1116View=%view{ascii} /usr/lib/mc/ext.d/video.sh view ALL_FORMATS
1117
1118
1119######### Default #########
1120
1121# Default target for anything not described above
1122[Default]
1123Edit=nano %f
1124Open=
1125View=
1126
1127### EOF ###