From cc398d501749a1bee4e676bb1336ba04ac3b49ed Mon Sep 17 00:00:00 2001 From: maxstrb Date: Fri, 7 Nov 2025 11:36:48 +0100 Subject: [PATCH] non important commit --- home/modules/shells.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/home/modules/shells.nix b/home/modules/shells.nix index 68a0e79..3b41c66 100644 --- a/home/modules/shells.nix +++ b/home/modules/shells.nix @@ -63,6 +63,13 @@ sudo nixos-rebuild switch --flake . } + def fzf-cd [] { + let dir = (fd -t d -L . | fzf --reverse --height 40%) + if $dir != null and $dir != "" { + cd $dir + } + } + $env.config.keybindings = ($env.config.keybindings | append { name: "fzf-cd" modifier: "control" @@ -71,10 +78,7 @@ event: [ { send: "executehostcommand" - cmd: 'commandline edit --replace $"cd \'(fd -t d -L . | fzf)\'"' - } - { - send: "enter" + cmd: 'fzf-cd' } ] })