fix: zoxide fuzzy search for session switching

This commit is contained in:
Noah Masur
2026-06-02 09:43:00 -04:00
parent 12961b19c0
commit 8b098f0589
@@ -34,7 +34,24 @@ in
# description = "Open a session in Zellij"; # description = "Open a session in Zellij";
body = # fish 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 if test -z $TARGET_DIR
return 0 return 0
end end