mirror of
https://github.com/nmasur/dotfiles
synced 2026-06-15 13:13:57 +00:00
fix: zoxide fuzzy search for session switching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user