From bcd04b836a8192f642c6ebdd3a21d74ff0fdd418 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Wed, 25 Feb 2026 12:59:33 +0100 Subject: [PATCH] yazi smart open --- home-modules/yazi.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/home-modules/yazi.nix b/home-modules/yazi.nix index 7023d90..e81f48c 100644 --- a/home-modules/yazi.nix +++ b/home-modules/yazi.nix @@ -1,5 +1,5 @@ { pkgs, ... }@all: with all; let - nox-var = (pkgs.pkgs-version != "24.05"); + not-nod = (pkgs.pkgs-version != "24.05"); tfc = pkgs.unstable.xdg-desktop-portal-termfilechooser; in { home.packages = [ @@ -68,7 +68,8 @@ in { # Operation { on = "o"; run = "open"; desc = "Open selected files"; } { on = "O"; run = "open --interactive"; desc = "Open selected files interactively"; } - { on = ""; run = "open"; desc = "Open selected files"; } + { on = ""; run = "plugin smart-enter"; desc = "Open selected files"; } + # { on = ""; run = "open"; desc = "Open selected files"; } { on = ""; run = "open --interactive"; desc = "Open selected files interactively"; } { on = "y"; run = [ ''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'' "yank" ]; desc = "Yank selected files (copy)"; } { on = "y"; run = "yank"; desc = "Yank selected files (copy)"; } @@ -442,7 +443,7 @@ in { ]; }; }; - } // (if nox-var then { + } // (if not-nod then { shellWrapperName = "ya"; initLua = /* lua */ '' require("zoxide"):setup { @@ -469,8 +470,8 @@ in { return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("blue") end, 500, Header.LEFT) ''; - plugins = with pkgs; { - inherit glow git; + plugins = { inherit (pkgs.yaziPlugins) + glow git smart-enter; }; } else {});