yazi config changes
This commit is contained in:
parent
ebcf2fbaad
commit
69d8a71911
1 changed files with 10 additions and 9 deletions
|
@ -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"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue