Yazi: Simplify openers again.

This commit is contained in:
Dmitry Voronin 2024-10-18 01:20:02 +03:00
parent 04c2d2614e
commit ed91ab0d23
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -138,6 +138,7 @@
defaultUse = [ defaultUse = [
"archive" "archive"
"archive_fast" "archive_fast"
"text"
"hex" "hex"
]; ];
mkMime = mime: use: { mkMime = mime: use: {
@ -168,10 +169,7 @@
]) ])
(mkMime "video/*" [ "video" ]) (mkMime "video/*" [ "video" ])
(mkMime "text/html" [ "browser" ]) (mkMime "text/html" [ "browser" ])
(mkMime "text/*" [ "text" ])
(mkMime "application/vnd.openxmlformats-officedocument.*" [ "document" ]) (mkMime "application/vnd.openxmlformats-officedocument.*" [ "document" ])
(mkMime "inode/directory" [ "archive" ])
(mkMime "inode/x-empty" [ "text" ])
(mkMime "*" [ ]) (mkMime "*" [ ])
]; ];
}; };