tmux_mouse
· 412 B · Text
Bruto
# Enabling mouse support for scrolling only
set -g mouse on
# Allow text selection while holding down the Shift key
bind -T copy-mode-vi WheelUpPane send-keys -X scroll-up
bind -T copy-mode-vi WheelDownPane send-keys -X scroll-down
bind -n WheelUpPane if-shell -F "#{mouse_any_flag}" "send-keys -M" "copy-mode -e; send-keys -M"
bind -n WheelDownPane if-shell -F "#{mouse_any_flag}" "send-keys -M" "send-keys -M"
| 1 | # Enabling mouse support for scrolling only |
| 2 | set -g mouse on |
| 3 | |
| 4 | # Allow text selection while holding down the Shift key |
| 5 | bind -T copy-mode-vi WheelUpPane send-keys -X scroll-up |
| 6 | bind -T copy-mode-vi WheelDownPane send-keys -X scroll-down |
| 7 | bind -n WheelUpPane if-shell -F "#{mouse_any_flag}" "send-keys -M" "copy-mode -e; send-keys -M" |
| 8 | bind -n WheelDownPane if-shell -F "#{mouse_any_flag}" "send-keys -M" "send-keys -M" |