Tmux: Keep scroll position when changing session

scrollingtmux

Sometimes I'm scrolling up a log file and need to switch sessions, so open the session menu with prefix-s. This causes tmux to forget the window's scroll position, so that when I return it's at the bottom of the log file.

Is there any way to keep scroll position when switching session?

Best Answer

use less to read your log file ? Or use screen ? I think that could be 2 solutions.