mime: associate every text mime type with kakoune

This commit is contained in:
Leonardo Eugênio 2023-01-24 09:41:11 -03:00
parent c51b634b6b
commit a08a79a960

View file

@ -64,6 +64,7 @@ in {
(map (createMimeAssociation mime_prefix application) mime_suffixes));
mimes = simple
// (createMimeAssociations "text" "kak.desktop" text_suffixes)
// (createMimeAssociations "image" "pqiv.desktop" image_suffixes)
// (createMimeAssociations "video" "mpv.desktop" video_suffixes);
@ -73,7 +74,6 @@ in {
}.${browser};
simple = {
"text/plain" = "kak.desktop";
"inode/directory" = "thunar.desktop";
"application/pdf" = "org.pwmt.zathura.desktop";
@ -89,6 +89,145 @@ in {
"x-scheme-handler/mailto" = "thunderbird.desktop";
};
text_suffixes = [
"cache-manifest"
"calendar"
"css"
"csv-schema"
"csv"
"enriched"
"html"
"htmlh"
"markdown"
"org"
"plain"
"rfc822-headers"
"richtext"
"rust"
"sgml"
"spreadsheet"
"tab-separated-values"
"tcl"
"troff"
"turtle"
"vbscript"
"vcard"
"vnd.graphviz"
"vnd.rn-realtext"
"vnd.senx.warpscript"
"vnd.sun.j2me.app-descriptor"
"vnd.trolltech.linguist"
"vnd.wap.wml"
"vnd.wap.wmlscript"
"vtt"
"x-adasrc"
"x-authors"
"x-bibtex"
"x-c++hdr"
"x-c++src"
"x-changelog"
"x-chdr"
"x-cmake"
"x-cobol"
"x-common-lisp"
"x-copying"
"x-credits"
"x-crystal"
"x-csharp"
"x-csrc"
"x-dart"
"x-dbus-service"
"x-dcl"
"x-dsl"
"x-dsrc"
"x-eiffel"
"x-elixir"
"x-emacs-lisp"
"x-erlang"
"x-fortran"
"x-gcode-gx"
"x-genie"
"x-gettext-translation-template"
"x-gettext-translation"
"x-gherkin"
"x-go"
"x-google-video-pointer"
"x-gradle"
"x-groovy"
"x-haskell"
"x-idl"
"x-imelody"
"x-install"
"x-iptables"
"x-java"
"x-kaitai-struct"
"x-kotlin"
"x-ldif"
"x-lilypond"
"x-literate-haskell"
"x-log"
"x-lua"
"x-makefile"
"x-matlab"
"x-maven"
"x-meson"
"x-microdvd"
"x-moc"
"x-modelica"
"x-mof"
"x-mpl2"
"x-mpsub"
"x-mrml"
"x-ms-regedit"
"x-mup"
"x-nfo"
"x-objc++src"
"x-objcsrc"
"x-ocaml"
"x-ocl"
"x-ooc"
"x-opencl-src"
"x-opml"
"x-pascal"
"x-patch"
"x-python"
"x-python3"
"x-qml"
"x-readme"
"x-reject"
"x-rpm-spec"
"x-rst"
"x-sagemath"
"x-sass"
"x-scala"
"x-scheme"
"x-scons"
"x-scss"
"x-setext"
"x-ssa"
"x-subviewer"
"x-svhdr"
"x-svsrc"
"x-systemd-unit"
"x-tex"
"x-texinfo"
"x-troff-me"
"x-troff-mm"
"x-troff-ms"
"x-twig"
"x-txt2tags"
"x-uil"
"x-uri"
"x-uuencode"
"x-vala"
"x-verilog"
"x-vhdl"
"x-xmi"
"x-xslfo"
"x.gcode"
"xmcd"
];
image_suffixes = [
"bmp"
"cgm"