diff --git a/misc/mc.ext.in b/misc/mc.ext.in index 9aa77234d..71cc003e6 100644 --- a/misc/mc.ext.in +++ b/misc/mc.ext.in @@ -115,6 +115,7 @@ regex/^\[git\] Open=%cd %p/changesetfs:// View=%cd %p/patchsetfs:// + ### Archives ### # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk, .gem @@ -334,9 +335,6 @@ shell/i/.f regex/i/\.(s|asm)$ Include=editor -include/editor - Open=%var{EDITOR:vi} %f - # .so libraries regex/\.(so|so\.[0-9\.]*)$ View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so @@ -346,6 +344,7 @@ type/^ELF #Open=%var{PAGER:more} %f View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf + ### Documentation ### # Texinfo @@ -424,6 +423,7 @@ regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.zst$ shell/i/.chm Open=@EXTHELPERSDIR@/text.sh open chm + ### Images ### type/^GIF @@ -477,10 +477,6 @@ shell/i/.svg View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg Open=@EXTHELPERSDIR@/image.sh open svg -include/image - Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS - View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS - ### Sound files ### @@ -567,10 +563,6 @@ shell/i/.webm type/WebM Include=video -include/video - Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS - View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS - ### Documents ### @@ -650,6 +642,10 @@ shell/i/.dvi shell/i/.tex Include=editor +# Markdown +shell/i/.md + Include=editor + # DjVu regex/i/\.djvu?$ Open=@EXTHELPERSDIR@/doc.sh open djvu @@ -724,6 +720,7 @@ shell/i/.lyx shell/i/.torrent View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent + ### Plain compressed files ### # ace @@ -819,6 +816,22 @@ regex/\.zst$ type/^Parity\ Archive\ Volume\ Set Open=@EXTHELPERSDIR@/archive.sh open par2 + +### Includes +# includes should be at end of bindings + +include/editor + Open=%var{EDITOR:vi} %f + +include/image + Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS + View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS + +include/video + Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS + View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS + + ### Default ### # Default target for anything not described above