Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. set -g mouse on
  2.  
  3. 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'"
  4.  
  5. bind -n WheelDownPane select-pane -t= \; send-keys -M
  6.  
  7. bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
  8.  
  9. bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up
  10.  
  11. bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down
  12.  
  13. bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up
  14.  
  15. bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down
  16.  
  17.  
  18.  
  19. # To copy, left click and drag to highlight text in yellow,
  20.  
  21. # once you release left click yellow text will disappear and will automatically be available in clibboard
  22.  
  23. # # Use vim keybindings in copy mode
  24.  
  25. setw -g mode-keys vi
  26.  
  27. # Update default binding of `Enter` to also use copy-pipe
  28.  
  29. unbind -T copy-mode-vi Enter
  30.  
  31. bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
  32.  
  33. bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement