I'm starting to use tmux, and I already love it. But if I could search through scrollback history it would be even better (e.g. like in iTerm2). Is there a way to do it as of now?
1 Answer
When you're in scrollback mode, you can use ctrl-S to search. More useful information here: How can I search within the output buffer of a tmux shell?
-
20Ctrl-S works for emacs bindings. If your tmux is using vim bindings, enter copy mode and use slash (
/
)– phsCommented Jan 20, 2017 at 20:23 -
Warning - this does not handle newlines. e.g if you search for a string, but that string occurs split across multiple lines, you will miss the split results!– AdverblyCommented Jan 15, 2020 at 21:01
-
2with vim bindings,
/
is to search down, but you most like want to search up with?
– jan-glxCommented Jul 6, 2023 at 6:18