diff --git a/tmux/bin/fuzzy-switch.sh b/tmux/bin/fuzzy-switch.sh index 5b66e7e..cac4e86 100755 --- a/tmux/bin/fuzzy-switch.sh +++ b/tmux/bin/fuzzy-switch.sh @@ -25,7 +25,9 @@ sel="$( printf '%s\n' "$items" | fzf \ --prompt='Project > ' \ --height=100% --layout=reverse \ - --print-query --expect=enter + --print-query --expect=enter \ + --bind 'tab:down,btab:up' \ + --cycle )" || exit 0 key="$(printf '%s\n' "$sel" | sed -n '1p')" diff --git a/tmux/tmux.conf b/tmux/tmux.conf index a838ba3..4d3e6b8 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -67,6 +67,7 @@ set -g @plugin 'omerxx/tmux-sessionx' set -g @plugin 'christoomey/vim-tmux-navigator' bind-key s display-popup -w 30% -h 30% -E "~/.config/tmux/bin/fuzzy-switch.sh" +bind-key f display-popup -w 30% -h 30% -E "~/.config/tmux/bin/fuzzy-switch.sh" # Initialise tmux plugin manager (needs to be at the bottom of the file) run '~/.config/tmux/plugins/tpm/tpm'