Skip to content

Instantly share code, notes, and snippets.

@Imfloppy
Last active March 11, 2016 03:38
Show Gist options
  • Select an option

  • Save Imfloppy/05b1001ff9f01e67722e to your computer and use it in GitHub Desktop.

Select an option

Save Imfloppy/05b1001ff9f01e67722e to your computer and use it in GitHub Desktop.
# https://github.com/tmux/tmux/issues/145
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -t vi-copy C-WheelUpPane halfpage-up
bind -t vi-copy C-WheelDownPane halfpage-down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment