^b+page up/down scrolls up/down one page of scroll buffer, but how do we scroll to beginning ?
like wise with end (besides pressing ^C to kill scrolling)
^b+page up/down scrolls up/down one page of scroll buffer, but how do we scroll to beginning ?
like wise with end (besides pressing ^C to kill scrolling)
This depends on the binding of "mode-keys". If you have set-option -g mode-keys emacs in your ~/.tmux.conf file (actually, this should be the default), then you can go to the beginning and the end of the buffer using corresponding emacs keys:
Similarly, going to the end is achieved by M->
If instead you prefer vi keybindings, you can put set-option -g mode-keys vi in your ~/.tmux.conf file, and then you have:
gg, go to the bottom using GPlease note that configuration in ~/.tmux.conf only takes effect after the tmux server restarts. That is when you kill all sessions and then restart tmux.
bind-key -t vi-copy Home history-top and bind-key -t vi-copy End history-bottom (or emacs-copy if you use emacs mode) make it easy to get to the top and bottom of history.gg for top G for bottomG) btw in case anyone wondering how to just jump back to the dang input. The easiest method if that's what you're looking for (which I was) is to just press q, which exits scroll mode and puts you back to the terminal input (without killing off mouse mode)You can use like:
bind-key -T copy-mode C-S-Home send -X history-top # Ctrl+Shift+Home
bind-key -T copy-mode C-S-End send -X history-bottom # Ctrl+Shift+End
This way when you are in copy mode Ctrl+Shift+Home will take you to the beginning of scroll buffer and Ctrl+Shift+End will take you to the end of scroll buffer.