← Back to context

Comment by hleszek

17 hours ago

I love tmux but one thing which really annoys me is the fact that I cannot use the mouse wheel or the scroll back to see the previous content. I know there are shortcuts to go forward and back but I always forget them and they are not easily accessible on my keyboard and cumbersome.

I think the mouse wheel is mapped by default if you `set mouse on`? I also additionally map Shift-PageUp/Down in my config. And recently they added a `pane-scrollbars` option for a clickable ASCII scrollbar.

  • Thanks! I works. I modified my ~/.tmux.conf file to be like this:

    # Activate mouse mode

    set -g mouse on

    # Enter copy mode and scroll up with PageUp

    bind-key -n Pageup copy-mode -u

    # Scroll down with PageDown; if at the bottom, it will exit copy mode automatically

    bind-key -T copy-mode-vi Pagedown send-keys -X page-down

    bind-key -T copy-mode-vi Pageup send-keys -X page-up