3 ms·
Can tmux do focus-follows-mouse for selecting between panes? (Last time I looked into it this wasn't possible)
by jefftk 7y ago
Can tmux do focus-follows-mouse for selecting between panes? (Last time I looked into it this wasn't possible)
- rbanffy 7y ago`set-option mouse on` allows you to select with a click.
- jefftk 7y agoYes, but I strongly prefer for focus to follow the mouse
- rbanffy 7y agoI thought it wouldn't be possible, but, after a quick googling, it seems it is. https://stackoverflow.com/questions/7462850/mouse-movement-events-in-ncurses https://stackoverflow.com/questions/7462850/mouse-movement-e... Sounds like an interesting idea to implement. Have you dug into the tmux bug tracker to check if someone already tried?
- GhettoMaestro 7y agoYup been using this mode for years as the default.
- jefftk 7y agoWhat do you need to do for focus to follow the mouse pointer's movement? It doesn't seem to work like that out of the box, and the only settings I've found require clicking.
- GhettoMaestro 7y agoSorry I misunderstood. I actually do click each pane to change focus/context. It isn't mouse-over. My bad.
- lonelappde 7y agoWhy would you use that over keyboard switching? FFM is used when you have overlapping windows and want to focus a window without raising it.
- jefftk 7y agoPersonal preference? I have always liked FFM, and while I like the keyboard for many things I find it much more awkward than the mouse for selecting among many (10+) terminals tiling the screen. (I don't want overlapping windows for anything, never have, and am still sad I can't get OS-wide FFM on a mac.)