Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tmux set -g mouse-select-window not working

Tags:

unix

tmux

from what I understand

set -g mouse-select-window on

Should allow me to click on a window in the status bar and go to that window. I put that in my tmux.conf file though and nothing happens when I click on a window. What am I doing wrong?

like image 490
David says Reinstate Monica Avatar asked Aug 08 '12 21:08

David says Reinstate Monica


2 Answers

In my .tmux.conf I have the following:

set -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on

Do you have the mode-mouse on setting?

like image 72
Mark Nichols Avatar answered Dec 10 '22 15:12

Mark Nichols


On 2.1 this config got deprecated and the new option to allow all mouse support is:

set -g mouse on

This break the nice mouse scroll support, but can be enabled with this:

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'"
like image 24
Arnold Roa Avatar answered Dec 10 '22 15:12

Arnold Roa