yazi plugin refactor and cache

This commit is contained in:
Matt Nish-Lapidus 2025-04-04 15:52:29 -04:00
parent cd215f8df6
commit 62a382f2f5
3 changed files with 16 additions and 12 deletions

12
flake.lock generated
View file

@ -744,11 +744,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1743778191, "lastModified": 1743791363,
"narHash": "sha256-Fc4kJeTawHVUd+TTpqLJRvvNusTTwqWE1vLz9IpH0NA=", "narHash": "sha256-hGETu0Ilugf0f7S5fFETUP+sS0ATrKcm+7YHs7GBwx4=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "612390f7f196eec4b832e3fca17719d412f5f69c", "rev": "f160e322673614c928e1187c268add9ef038a513",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -981,11 +981,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1743576891, "lastModified": 1743703532,
"narHash": "sha256-vXiKURtntURybE6FMNFAVpRPr8+e8KoLPrYs9TGuAKc=", "narHash": "sha256-s1KLDALEeqy+ttrvqV3jx9mBZEvmthQErTVOAzbjHZs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "44a69ed688786e98a101f02b712c313f1ade37ab", "rev": "bdb91860de2f719b57eef819b5617762f7120c70",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -59,10 +59,12 @@
substituters = [ substituters = [
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://cache.garnix.io" "https://cache.garnix.io"
"https://yazi.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k="
]; ];
}; };

View file

@ -10,10 +10,9 @@
officialPluginsNames = [ officialPluginsNames = [
"chmod" "chmod"
"diff" "diff"
"smart-filter"
"git" "git"
"mount" "mount"
"toggle-pane" # "toggle-pane"
]; ];
officialPluginsSrc = pkgs.fetchgit { officialPluginsSrc = pkgs.fetchgit {
@ -82,9 +81,9 @@
{ on = ["g" "l"]; run = "plugin lazygit"; desc = "lazygit"; } { on = ["g" "l"]; run = "plugin lazygit"; desc = "lazygit"; }
{ on = ["t" "p"]; run = "plugin toggle-pane min-parent"; desc = "Toggle parent"; } # { on = ["t" "p"]; run = "plugin toggle-pane min-parent"; desc = "Toggle parent"; }
{ on = ["t" "c"]; run = "plugin toggle-pane min-current"; desc = "Toggle current"; } # { on = ["t" "c"]; run = "plugin toggle-pane min-current"; desc = "Toggle current"; }
{ on = ["t" "r"]; run = "plugin toggle-pane min-preview"; desc = "Toggle preview"; } # { on = ["t" "r"]; run = "plugin toggle-pane min-preview"; desc = "Toggle preview"; }
{ on = "<C-t>"; run ="tab_create"; } { on = "<C-t>"; run ="tab_create"; }
{ on = "<C-w>"; run ="tab_close"; } { on = "<C-w>"; run ="tab_close"; }
@ -105,8 +104,11 @@
{ on = ["d" "d"]; run = "remove"; desc = "Delete files/folders"; } { on = ["d" "d"]; run = "remove"; desc = "Delete files/folders"; }
{ on = ["d" "u"]; run = "plugin restore"; desc = "Restore last deleted files/folders"; } { on = ["d" "u"]; run = "plugin restore"; desc = "Restore last deleted files/folders"; }
{ on = "f"; run = "plugin smart-filter"; desc = "Find file"; } { on = "f"; run = "filter --smart"; desc = "Find file"; }
{ on = "F"; run = "find --smart"; desc = "Find file"; } { on = "F"; run = "find --smart"; desc = "Find file"; }
{ on = "z"; run = "plugin zoxide"; }
{ on = "Z"; run = "plugin fzf"; }
]; ];
}; };
settings = { settings = {