4 ms·
Does mouse copy and paste work correctly with tmux? I find that it selects spans across multiple panes. Is there a way to fix this or Windows or Linux?
by pkaye 10y ago
Does mouse copy and paste work correctly with tmux? I find that it selects spans across multiple panes. Is there a way to fix this or Windows or Linux?
- chris_st 10y agoI use the "PREFIX z" command to "maximize" the current pane, that is, it hides all the other panes and makes the current one the only visible pane, filling the whole terminal. Then I copy, and "PREFIX z" again to go back.
- bostand 10y agoClever! You just solved my main issue with tmux!
- williamdclt 10y agoPanes in tmux are only logical, not physical, you can't avoid it. You can either maximize your pane (which is the best feature of tmux for me :)) or use the copy-mode (so, not the mouse)
- rocqua 10y agoCopy mode works with the mouse simply by using mouse-enable. It'll still copy to the tmux buffer, not any system clipboard.
- steffan 10y agoAnother option is to write the tmux buffer to pbcopy on a Mac or xclip or something similar in Linux
- GrinningFool 10y agoIf you don't enable mouse support (set -g mouse on) then the terminal process handles mouse and does what you're describing* . When you enable mouse support tmux handles selections within panes and doesn't span. * the other possibility also is that your term emulator is configured to grab mouse control without passing it through.
- Zaheer 10y agoUse tmux in iTerm with `tmux -CC` and it'll open tmux in a native pane. No more re-learning!