I want to set up iTerm2 to pass scroll events to tmux, so I can trivially enter (and exit) scrollback mode for whatever pane is active. Is this possible to do with iTerm2, or automation of some sort, or …?
Make tmux scroll from the trackpad
itermtmux
Related Question
- Iterm + tmux isn’t allowing me to scroll up with the mouse
- MacOS – I can’t delete in tmux
- Mapping ⌘→ to ^Q→ in iTerm2 doesn’t work
- Hotkeys don’t work in zsh when $TERM is set to screen-256color
- Why does F4 not work in MacOS X (Touchbar macBook, or macBook Air)
- Report *only* mouse wheel events in iTerm2
- How to limit iTerm2 text selection to a single tmux pane
- How to bind double tapping the shift key in tmux
Best Answer
The mode is referred to as "copy mode" and as long as you're running
tmux
1.5 or higher you can add:to your
~/.tmux.conf
file and tmux will automatically enter and exit copy mode when you use the scroll wheel on your mouse.As a bonus, this option allows you to select the tmux pane with your mouse: