From 8b098f0589a6c2d73d49a38332617393f9900e3f Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 2 Jun 2026 09:43:00 -0400 Subject: [PATCH] fix: zoxide fuzzy search for session switching --- .../nmasur/presets/programs/zellij.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix index d3d4dd6f..fc96539a 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix @@ -34,7 +34,24 @@ in # description = "Open a session in Zellij"; body = # fish '' - set TARGET_DIR $(zoxide query --interactive) + set TARGET_DIR $( \ + zoxide query --list --score | \ + fzf --filter="$query" --no-sort | \ + fzf \ + --prompt="zoxide > " \ + --nth=2.. \ + --ansi \ + --height=60% \ + --info=inline \ + --border=rounded \ + --layout=reverse \ + --preview-window=down:40%:wrap \ + --preview='ls -F -C --color=always {2..}' \ + --bind 'ctrl-z:ignore,btab:up,tab:down,enter:become:echo {2..}' \ + --cycle \ + --keep-right \ + --tabstop=1 \ + ) if test -z $TARGET_DIR return 0 end