Skip to content

Instantly share code, notes, and snippets.

@spacepluk
Created October 29, 2015 09:29
Show Gist options
  • Save spacepluk/d2f0b4370155d58477e1 to your computer and use it in GitHub Desktop.
Save spacepluk/d2f0b4370155d58477e1 to your computer and use it in GitHub Desktop.
# Mouse settings
set-option -g -q mouse on
bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
bind-key -t vi-copy PPage page-up
bind-key -t vi-copy NPage page-down
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
bind-key -t vi-copy WheelUpPane scroll-up
bind-key -t vi-copy WheelDownPane scroll-down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment