tmux: Do not show panes when switching sessions
Seeing panes while switching is not helpful enough with our naming scheme for panes. Just show sessions and use exact option with fzf to switch quickly.
This commit is contained in:
parent
7e4193fc82
commit
faa5ccb3a7
1 changed files with 3 additions and 3 deletions
|
@ -101,10 +101,10 @@ bind -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||||
# Save scrollback buffer to a file
|
# Save scrollback buffer to a file
|
||||||
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 and Pane selector
|
# Session selector
|
||||||
bind T display-popup -E "tmux list-windows -a -F '#{session_name}:#{window_index} - #{window_name}' \
|
bind T display-popup -E "tmux list-sessions -F '#{session_name}' \
|
||||||
| grep -v \"^$(tmux display-message -p '#S')\$\" \
|
| grep -v \"^$(tmux display-message -p '#S')\$\" \
|
||||||
| fzf --reverse \
|
| fzf --reverse --exact \
|
||||||
| sed -E 's/\s-.*$//' \
|
| sed -E 's/\s-.*$//' \
|
||||||
| xargs tmux switch-client -t"
|
| xargs tmux switch-client -t"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue