tmux -- naming windows and selecting them via fuzzy matching
Solution 1:
Here are links to scripts that use fzf
to fuzzy search and select a pane
:
https://github.com/junegunn/fzf/wiki/Examples-(tmux)#select-pane
https://github.com/junegunn/fzf/wiki/Examples#tmux
I guess it won't be too hard to adjust those for fuzzy searching windows
.
EDIT:
Change this line:
panes=$(tmux list-panes -s -F '#I:#P - #{pane_current_path} #{pane_current_command}')
To:
panes=$(tmux list-panes -s -F '#I:#P #W - #{pane_current_path} #{pane_current_command}')
(I added the #W
which also prints the window
name)
Solution 2:
Tmux can't do that by default.
Google doesn't return many results and this question is number two or three depending on the query but these zsh scripts might be interesting.