tmux: Fix session selector
Not sure what changed in the upgrade to 3.5. This also improves it a bit compared to the previously convoluted incantation we copied from somewhere.
This commit is contained in:
parent
e46c3ab531
commit
c145edc678
1 changed files with 1 additions and 5 deletions
|
@ -102,11 +102,7 @@ bind -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||||
bind S command-prompt -p 'Save history to filename:' -I '/tmp/tmux.history' 'capture-pane -S - -E -; save-buffer %1 ; delete-buffer'
|
bind S command-prompt -p 'Save history to filename:' -I '/tmp/tmux.history' 'capture-pane -S - -E -; save-buffer %1 ; delete-buffer'
|
||||||
|
|
||||||
# Session selector
|
# Session selector
|
||||||
bind T display-popup -E "tmux list-sessions -F '#{session_name}' \
|
bind T display-popup -E "tmux switch-client -t (tmux list-sessions | fzf --exact | awk -F':' '{print $1}')"
|
||||||
| grep -v \"^$(tmux display-message -p '#S')\$\" \
|
|
||||||
| fzf --reverse --exact \
|
|
||||||
| sed -E 's/\s-.*$//' \
|
|
||||||
| xargs tmux switch-client -t"
|
|
||||||
|
|
||||||
# Last command output
|
# Last command output
|
||||||
set -g @command-capture-key t
|
set -g @command-capture-key t
|
||||||
|
|
Loading…
Reference in a new issue