How to scroll the start / end of the scroll buffer in tmux?

^ b + page up / down scrolls up / down one page of the scroll buffer, but how do we scroll the start?

how wise with the end (besides pressing ^ C to kill the scroll)

+5
source share
1 answer

it depends on the binding of the "mode keys". If you are "set-option -g mode-keys emacs" (in fact, these are the default settings), then you can go to the beginning and end of the buffer using the appropriate emacs keys.

  1. Enter copy mode using: ctrl-b + [
  2. Go to the beginning using: Alt + shift + , (or, in emacs notation: M- <)

In the same way, going all the way is achieved using M->

HOW TO CHECK

Please note that the setting in ~ / .tmux.conf takes effect only after restarting the tmux server. This is when you kill all sessions and then restart tmux.

In fact, however, there is an easier way to check: just run the following command on the command line:

tmux set-option -g mode-keys emacs 

I donโ€™t think there is a way to change only one key. But you have a choice

 tmux set-option -g mode-keys vi 

You should be able to navigate in copy mode using hjkl etc.

+7
source

All Articles