yazi config changes

This commit is contained in:
Matt Nish-Lapidus 2025-02-17 11:45:20 -05:00
parent ebcf2fbaad
commit 69d8a71911

View file

@ -1,4 +1,4 @@
{ inputs, ... }:
{ inputs, pkgs, ... }:
{
programs.yazi = {
enable = true;
@ -26,6 +26,7 @@
{ on = "j"; run = "plugin arrow 1"; desc = "down"; }
{ on = "<Up>"; run = "plugin arrow -1"; desc = "up"; }
{ on = "<Down>"; 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"; }