Created
January 26, 2016 14:54
-
-
Save pklingem/d7770c249e8096a18f09 to your computer and use it in GitHub Desktop.
tmux mouse integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mouse integration for OS X, not sure about linux | |
# see: https://github.com/tmux/tmux/issues/145#issuecomment-151123624 | |
set -g mouse-utf8 on | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment