diff --git a/modules/home/yazi.nix b/modules/home/yazi.nix index 2181f06..4f98560 100644 --- a/modules/home/yazi.nix +++ b/modules/home/yazi.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: +{ inputs, pkgs, ... }: { programs.yazi = { enable = true; @@ -26,6 +26,7 @@ { on = "j"; run = "plugin arrow 1"; desc = "down"; } { on = ""; run = "plugin arrow -1"; desc = "up"; } { on = ""; run = "plugin arrow 1"; desc = "down"; } + { on = "C"; run = "plugin ouch --args=zip"; } ]; }; settings = { @@ -39,21 +40,15 @@ { run = "emacsclient -r -n \"$@\""; desc = "open in current emacsclient"; orphan = true; } ]; extract = [ - { run = "ouch d -y \"%*\""; desc = "Extract here with ouch"; for = "windows"; } - { run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; for = "unix"; } + { run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; } ]; }; plugin = { prepend_preloaders = [ { name = "/mnt/**"; run = "noop"; } - { name = "/home/emenel/mnt/**"; run = "noop"; } + { name = "/home/emenel/Mounts/**"; run = "noop"; } ]; append_previewers = [ - { name = "*"; run = "file-extra-metadata"; } - { name = "*.md"; run = "glow"; } - { mime = "{image,audio,video}/*"; run = "mediainfo";} - { mime = "application/x-subrip"; run = "mediainfo";} - # Archive previewer { mime = "application/*zip"; run = "ouch"; } { mime = "application/x-tar"; run = "ouch"; } @@ -61,6 +56,12 @@ { mime = "application/x-7z-compressed"; run = "ouch"; } { mime = "application/x-rar"; run = "ouch"; } { mime = "application/x-xz"; run = "ouch"; } + + { name = "*"; run = "file-extra-metadata"; } + { name = "*.md"; run = "glow"; } + { mime = "{image,audio,video}/*"; run = "mediainfo";} + { mime = "application/x-subrip"; run = "mediainfo";} + ]; append_spotters = [ { name = "*"; run = "file-extra-metadata"; }