Yazi : Add support for 7z archives.

This commit is contained in:
Dmitry Voronin 2024-09-18 02:06:59 +03:00
parent 786109c674
commit d23ec98f8f
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -83,10 +83,13 @@
rules = let
mkRule = mime: use: { inherit mime; use = use ++ [ "text" "hex" ]; };
in [
# Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app.
(mkRule "application/gzip" [ "archive" ])
(mkRule "application/x-tar" [ "archive" ])
(mkRule "application/x-xz" [ "archive" ])
(mkRule "application/zip" [ "archive" ])
(mkRule "application/x-7z-compressed" [ "archive" ])
(mkRule "application/pdf" [ "pdf" ])
(mkRule "audio/*" [ "audio" ])
(mkRule "image/*" [ "image" "image_edit" ])