Yazi: Prefer file names for openers.

This commit is contained in:
Dmitry Voronin 2024-12-13 10:16:23 +03:00
parent ff0c60a079
commit af7e9bb147
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -141,6 +141,11 @@
use = use ++ defaultUse;
};
in [
(mkName "*.xlsx" [ "document" ])
(mkName "*.mka" [ "audio" ])
(mkName "*.nsp" [ "switch_install" ])
(mkName "*.nsz" [ "switch_install" ])
# Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app.
(mkMime "application/gzip" [ "unpack" ])
@ -152,15 +157,12 @@
(mkMime "application/x-raw-disk-image" [ "unlock" ])
(mkMime "application/pdf" [ "pdf" ])
(mkMime "audio/*" [ "audio" ])
(mkName "*.mka" [ "audio" ])
(mkName "*.nsp" [ "switch_install" ])
(mkName "*.nsz" [ "switch_install" ])
(mkMime "image/*" [ "picture" "picture_copy" "picture_edit" "picture_edit_quick" ])
(mkMime "video/*" [ "video" ])
(mkMime "text/html" [ "browser" ])
(mkMime "application/vnd.openxmlformats-officedocument.*" [ "document" ])
(mkName "*.xlsx" [ "document" ])
(mkMime "application/x-executable" [ "steam_run" ])
{ mime = "inode/directory"; use = [ "archive" "bottle_run" "audio_shuffle" ]; }
(mkMime "*" [ ])
];