tmuxtmuxinator

Switch between sessions in tmux by name?


I have similar question as this one, but I wonder is there are an possibility to filter sessions by name? Maybe use fzf on top of sessions list?

As the result I want to open sessions list via CTRL-b + s (how I can draw button here by the way?), write rust and sessions should be filtered.


Solution

  • You can try changing the binding in your .tmux.conf to:

    bind-key s split-window -v "tmux resize-pane -Z ';' \
     list-sessions -F '#S' | \
     fzf --reverse | xargs tmux switch-client -t"