-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot copy to my system clipboard when I run tmux on a remote server and connect using SSH #119
Comments
The behavior you're seeing is tmux's normal behavior when mouse mode is on. If turn mouse mode off, then iTerm2 will handle the selection and pasting to your Mac's clipboard. If you want to use your mouse to resize or select panes but you don't want it to handle entering in copy mode and selecting text you have to unbind
|
Wow, that's good to know. Never thought of that. Let me play with it and see if I can unbind the MouseDrag* bindings. |
Hello @indrayam, Are we good? |
Unfortunately, I decided to move on without diving further into it. My apologies. |
Hello @indrayam, I think the Here are the pre-requisites:
Now,
|
I don't know if mac terminal works like linux one but one simple solution to me is keep SHIFT key pressed when I select what I want to copy, use the right button to copy and it sends the content to the clipboard, |
@amioranza Just a supplement. On mac, keep the option key instead of SHIFT key when selecting. Also, use command+v to paste. |
@haoransh: On my current setup, it works if I set the remote tmux with |
@gpakosz I used the |
Just checking up on this, I'd like to be able to 1. Select things in a pane like "normal" (mouse mode on), and ahve things show up in both the tmux paste buffer, as well as in my mac clipboard for pasting. Thanks! |
Any plans on having this merged to master branch? |
Hello @notrev, Merging the branch requires requiring tmux |
This works unless I have a window split vertically, i.e. two panes side by side. Selecting with the shift key causes the selection to sort of "bleed" into the next pane, and the text that gets copied has lots of garbage in it, including pipe symbols '|' where the pane bled into the next pane. |
Can this work with mouse? |
I am using Oh-My-Tmux on my laptop which is a MacBook running MacOS Sierra. Tmux version is 2.6. I have latest XQuartz installed as well. My /etc/ssh/ssh_config settings have been modified to forward X11:
The terminal app I am using is iTerm 2 and I am connecting remotely to an Ubuntu 16.04 droplet on Digital Ocean using the function below. I am running latest Tmux (2.6) on my Ubuntu droplet and have installed xclip (and xsel) as well.:
To connect, I type:
ssht <ssh-config-alias-for-my-host>
Simple dragging of any text on my remote server using my mouse copies it to the Tmux buffer. I can see them when I run Ctrl + a P. However, they are not getting copied to my Mac's system clipboard.
Any suggestions on what I am doing wrong?
The text was updated successfully, but these errors were encountered: