Created
May 10, 2022 23:58
-
-
Save PatOConnor43/98fd1842f0de126ff5d9c8d1ea8f10c5 to your computer and use it in GitHub Desktop.
A snippet to fuzzy find tmux panes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### filename: tmux-fuzzy-find.sh | |
### description: A snippet to fuzzy find tmux panes | |
#!/usr/bin/bash | |
selected_tuple=($(tmux list-panes -s -F '#{window_index} #{pane_index} #{pane_current_path} #{pane_current_command}' | fzf-tmux -h 20)) | |
tmux select-window -t "${selected_tuple[0]}" | |
tmux select-pane -t "${selected_tuple[1]}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment