mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-07-06 16:12:33 +02:00
add yazi plugins
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,41 @@
|
||||
ouch = pkgs.yaziPlugins.ouch;
|
||||
piper = pkgs.yaziPlugins.piper;
|
||||
convert = pkgs.yaziPlugins.convert;
|
||||
"full-border" = { package = pkgs.yaziPlugins."full-border"; setup = true; };
|
||||
"toggle-pane" = pkgs.yaziPlugins."toggle-pane";
|
||||
"jump-to-char" = pkgs.yaziPlugins."jump-to-char";
|
||||
"wl-clipboard" = pkgs.yaziPlugins."wl-clipboard";
|
||||
starship = { package = pkgs.yaziPlugins.starship; setup = true; };
|
||||
"batch-rename-gui" = pkgs.yaziPlugins.mkYaziPlugin {
|
||||
pname = "batch-rename-gui.yazi";
|
||||
version = "0-unstable-2025-07-08";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "pakhromov";
|
||||
repo = "batch-rename-gui.yazi";
|
||||
rev = "5c2d5aa349948b6ab405a171541faab44751f6a5";
|
||||
hash = "sha256-3RviPY3WOyYi5GWXWRYMWp6VLxCe5cuJX7Kb7AyWxLE=";
|
||||
};
|
||||
};
|
||||
"command-palette" = pkgs.yaziPlugins.mkYaziPlugin {
|
||||
pname = "command-palette.yazi";
|
||||
version = "0-unstable-2025-07-08";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "Mr-Ples";
|
||||
repo = "command-palette.yazi";
|
||||
rev = "e5e61057381e2642d36ba5b9a4977c8196bc1791";
|
||||
hash = "sha256-Mt1q05YgexMyHpy8qQ778jBny9f7XrftDZXjzONZVxg=";
|
||||
};
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
substituteInPlace main.lua \
|
||||
--replace 'line = line:gsub' 'local line = line:gsub'
|
||||
cp -r . $out
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
settings.mgr.ratio = [ 1 4 3 ];
|
||||
|
||||
settings.plugin = {
|
||||
prepend_fetchers = [
|
||||
@@ -29,8 +63,14 @@
|
||||
{ on = ["c" "p"]; run = "plugin convert -- --extension='png'"; desc = "Convert to PNG"; }
|
||||
{ on = ["c" "j"]; run = "plugin convert -- --extension='jpg'"; desc = "Convert to JPG"; }
|
||||
{ on = ["c" "w"]; run = "plugin convert -- --extension='webp'"; desc = "Convert to WebP"; }
|
||||
{ on = ["M"]; run = ''shell 'exiftool "$@" | less' --block''; desc = "Show metadata"; }
|
||||
{ on = ["T"]; run = "plugin toggle-pane min-parent"; desc = "Toggle parent pane"; }
|
||||
{ on = ["F"]; run = "plugin jump-to-char"; desc = "Jump to char"; }
|
||||
{ on = ["Y"]; run = "plugin wl-clipboard"; desc = "Copy to clipboard (Wayland)"; }
|
||||
{ on = ["B"]; run = "plugin batch-rename-gui"; desc = "Batch rename"; }
|
||||
{ on = [";"]; run = "plugin command-palette"; desc = "Command palette"; }
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ glow ouch hexyl ];
|
||||
home.packages = with pkgs; [ glow ouch hexyl exiftool starship fzf ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user