Explorar o código

add more tmux mouse support options

Found from
http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/
Don't know that the difference between `set-window-option` and `set-option` are,
for `mode-mouse on`.
Weiyi Lou %!s(int64=13) %!d(string=hai) anos
pai
achega
ba42f7ffec
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      tmux/tmux.conf

+ 7 - 1
tmux/tmux.conf

@@ -16,8 +16,14 @@ set-option -g visual-activity on
 # current window, rather than the smallest session to which it is attached.
 set-window-option -g aggressive-resize on
 
-# mouse support (for scrollback)
+# Mouse Support! (for scrollback, and lazy manipulation of windows/panes)
+# At least with iTerm2, this plays very well with vim mouse support :D Yay!
+# Note: text-selection by default does a tmux copy (paste with prefix+]).
+# Hold alt/meta/option for system selection/copy.
 set-option -g mode-mouse on
+set-option -g mouse-select-pane
+set-option -g mouse-resize-pane on
+set-option -g mouse-select-window on
 
 # act like vim
 set-option -g status-keys vi