You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With set -g mouse on, when I highlight text tmux-yank copies it to the primary buffer using xsel. When I immediately try to paste this text in any pane (using shift+middle-click) in the same tmux instance it fails to paste. xsel -p prints the previously highlighted text - so the copy part is working, just paste isn't.
If I middle-click into any other window, the paste works. And from then on, the paste also works in tmux. This suggests to me that there is something blocking the shift-middle-click paste in tmux, until the terminal window loses focus. Copy/primary-paste continues to work for a short time after this, then it happens again (after ~2 mins).
This happens in fullscreen or windowed mode and seems to also apply to the clipboard buffer (when text is copied by pressing "y" instead of mouse-up).
I'm aware I can just bypass tmux by holding down Alt, but this doesn't work with panes as it selects a whole line across the display. I'd like to copy multi-line per pane.
I'm not sure how to debug the middle-click paste event in tmux. What debug options can I turn on to print more information about this? Thanks
tmux 2.9a, Fedora 32, gnome-terminal 3.34.2
The text was updated successfully, but these errors were encountered:
Another quick workaround is to highlight text and mouse-up (copying to primary clipboard), then press the super-key (Windows key) twice. In Gnome 3, this enters and leaves the "Activities" overview (I think that's what it's called) - re-focusing the terminal and letting me paste with middle-click.
I think the next steps to debug this are:
Reproducing on another machine/os (maybe it's just me?)
Reproduce with upstream tmux
Add debug to upstream tmux mouse-up and middle-click events
Add debug to "paste" action - if that's even a thing.
Hopefully someone with more knowledge of tmux can point me in the right direction.
With
set -g mouse on
, when I highlight text tmux-yank copies it to the primary buffer using xsel. When I immediately try to paste this text in any pane (using shift+middle-click) in the same tmux instance it fails to paste.xsel -p
prints the previously highlighted text - so the copy part is working, just paste isn't.If I middle-click into any other window, the paste works. And from then on, the paste also works in tmux. This suggests to me that there is something blocking the shift-middle-click paste in tmux, until the terminal window loses focus. Copy/primary-paste continues to work for a short time after this, then it happens again (after ~2 mins).
This happens in fullscreen or windowed mode and seems to also apply to the clipboard buffer (when text is copied by pressing "y" instead of mouse-up).
I'm aware I can just bypass tmux by holding down Alt, but this doesn't work with panes as it selects a whole line across the display. I'd like to copy multi-line per pane.
I'm not sure how to debug the middle-click paste event in tmux. What debug options can I turn on to print more information about this? Thanks
tmux 2.9a, Fedora 32, gnome-terminal 3.34.2
The text was updated successfully, but these errors were encountered: