Skip to content

Instantly share code, notes, and snippets.

@PatOConnor43
Created May 10, 2022 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatOConnor43/98fd1842f0de126ff5d9c8d1ea8f10c5 to your computer and use it in GitHub Desktop.
Save PatOConnor43/98fd1842f0de126ff5d9c8d1ea8f10c5 to your computer and use it in GitHub Desktop.
A snippet to fuzzy find tmux panes
### 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