From faa5ccb3a73000c2ed677cb14f19b3e5981b9348 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 29 Dec 2022 17:36:10 +0530 Subject: [PATCH] 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. --- tmux/.tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 91c836c..7163c8a 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -101,10 +101,10 @@ bind -T copy-mode-vi r send-keys -X rectangle-toggle # 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' -# Session and Pane selector -bind T display-popup -E "tmux list-windows -a -F '#{session_name}:#{window_index} - #{window_name}' \ +# Session selector +bind T display-popup -E "tmux list-sessions -F '#{session_name}' \ | grep -v \"^$(tmux display-message -p '#S')\$\" \ - | fzf --reverse \ + | fzf --reverse --exact \ | sed -E 's/\s-.*$//' \ | xargs tmux switch-client -t"