Yazi: Bring back removed openers.

This commit is contained in:
Dmitry Voronin 2024-11-19 05:27:31 +03:00
parent 5298111937
commit 044b644b82
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -31,6 +31,14 @@
orphan = true; orphan = true;
run = openWith "xdg-open"; run = openWith "xdg-open";
}]; }];
archive = [{
desc = "Archive";
run = openWith "archive";
}];
archive_fast = [{
desc = "Archive Fast";
run = openWith "archive_fast";
}];
audio = [{ audio = [{
desc = "Audio"; desc = "Audio";
orphan = true; orphan = true;
@ -66,11 +74,20 @@
orphan = true; orphan = true;
run = openWith "gimp"; run = openWith "gimp";
}]; }];
mount = [{
desc = "Mount";
run = openWith "fmount";
}];
pdf = [{ pdf = [{
desc = "Pdf"; desc = "Pdf";
orphan = true; orphan = true;
run = openWith "evince"; run = openWith "evince";
}]; }];
unlock = [{
desc = "Unlock";
block = true;
run = openWith "funlock";
}];
text = [{ text = [{
desc = "Text"; desc = "Text";
block = true; block = true;
@ -91,6 +108,8 @@
rules = let rules = let
defaultUse = [ defaultUse = [
"text" "text"
"archive"
"archive_fast"
"hex" "hex"
]; ];
mkMime = mime: use: { mkMime = mime: use: {
@ -109,6 +128,8 @@
(mkMime "application/x-xz" [ "unpack" ]) (mkMime "application/x-xz" [ "unpack" ])
(mkMime "application/zip" [ "unpack" ]) (mkMime "application/zip" [ "unpack" ])
(mkMime "application/x-7z-compressed" [ "unpack" ]) (mkMime "application/x-7z-compressed" [ "unpack" ])
(mkMime "application/x-iso9660-image" [ "mount" ])
(mkMime "application/x-raw-disk-image" [ "unlock" ])
(mkMime "application/pdf" [ "pdf" ]) (mkMime "application/pdf" [ "pdf" ])
(mkMime "audio/*" [ "audio" ]) (mkMime "audio/*" [ "audio" ])
(mkName "*.mka" [ "audio" ]) (mkName "*.mka" [ "audio" ])