Search across all tmux panes' scrollback history with fzf. Select a result to jump directly to that line in copy-mode with search highlighting.
- Searches scrollback history across all panes, windows, and sessions
- fzf-powered fuzzy/exact search with live filtering
- Preview window shows context around each match
- Selecting a result switches to that pane, enters copy-mode at the exact line, and sets up the search pattern so
n/Nnavigate between matches - Runs in a tmux popup overlay (no extra panes created)
- tmux 3.2+ (for
display-popup) - fzf
Add to ~/.tmux.conf:
set -g @plugin 'cookiecad/tmux-grep'Then press prefix + I to install.
Press prefix + / to open the search popup.
- Type to filter results (exact match by default)
- Preview pane shows surrounding context
- Press
Enterto jump to the selected match - Press
EscapeorCtrl-Cto cancel Ctrl-Stoggles sort order
Once you jump to a match, you're in tmux copy-mode:
n— next matchN— previous matchq— exit copy-mode
# Change keybinding (default: /)
set -g @grep-key '/'
# Scrollback depth to search (default: -5000, use - for unlimited)
set -g @grep-depth '-5000'
# Context lines in preview (default: 5)
set -g @grep-context '5'MIT