From c70a2212d771ea40fc903008713480641d989515 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Sat, 21 Nov 2026 17:00:18 -0800 Subject: [PATCH] feat(yazi): added lg on ; swapped default : and ; behaivor --- home/Winter/common/features/shell.nix | 8 +++++--- home/Winter/common/features/yazi/yazi.nix | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/home/Winter/common/features/shell.nix b/home/Winter/common/features/shell.nix index bffb9c6..0a4ebf9 100644 --- a/home/Winter/common/features/shell.nix +++ b/home/Winter/common/features/shell.nix @@ -12,15 +12,14 @@ ]; home.packages = ( (with pkgs; [ - # --- Core Wayland plumbing (Stable 26.05) --- - wl-clipboard + (pkgs.writeShellScriptBin "lg" ''exec ${pkgs.lazygit}/bin/lazygit "$@"'') ]) ++ (with pkgs.unstablePkgs; [ - # --- Fast-moving CLI utils (Unstable) --- clipse timg ]) ); + # --- Shell environment --- programs.direnv.enable = true; home.shellAliases = { @@ -28,6 +27,7 @@ la = "ls -a"; lal = "ls -al"; }; + programs.fish = { enable = true; shellAliases = { @@ -40,6 +40,7 @@ please = "sudo"; }; }; + home.shell.enableFishIntegration = true; programs.bash = { enable = true; @@ -65,6 +66,7 @@ user.email = "149337190+WinterEkisha@users.noreply.github.com"; }; }; + programs.eza.enable = true; programs.bat.enable = true; programs.btop.enable = true; diff --git a/home/Winter/common/features/yazi/yazi.nix b/home/Winter/common/features/yazi/yazi.nix index 180cbb6..9ab8c3c 100644 --- a/home/Winter/common/features/yazi/yazi.nix +++ b/home/Winter/common/features/yazi/yazi.nix @@ -16,18 +16,18 @@ mgr = { ratio = [ 1 2 3 ]; sort_by = "alphabetical"; - sort_dir_first = true; + sort_dir_first = true; }; preview = { max_width = 10000; - max_height = 10000; + max_height = 10000; }; tasks = { image_bound = [ 65000 65000 ]; }; open = { prepend_rules = [ - { mime = "video/*"; use = "open"; } + { mime = "video/*"; use = "open"; } ]; }; }; @@ -38,6 +38,16 @@ run = ''shell 'wl-copy --type "$(file --mime-type -b "$1")" < "$1"' --confirm''; desc = "Copy file data to clipboard with matching MIME type"; } + { + on = ";"; + run = "shell --interactive --block"; + desc = "Run a shell command (block until finish)"; + } + { + on = ":"; + run = "shell --interactive"; + desc = "Run a shell command (yazi background)"; + } ]; }; };