Skip to content
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

Allow to copy from remote tmux to local clipboard #8049

Closed
pszypowicz opened this issue Feb 15, 2023 · 12 comments
Closed

Allow to copy from remote tmux to local clipboard #8049

pszypowicz opened this issue Feb 15, 2023 · 12 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Milestone

Comments

@pszypowicz
Copy link

pszypowicz commented Feb 15, 2023

I'm a tmux user who copies text from terminal using keyboard.

In tmux, I'm able to enter "copy mode", select text, press "Enter" and selected text will show up in the Clipboard.

Unfortunately I'm unable to achieve it with Remote SSH extension. However it is working as expected when I'm connect via standard SSH and use tmux.

To be honest I do not know if that's a "Bug" of "Feature Request"

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Feb 15, 2023
@bamurtaugh bamurtaugh added the feature-request Request for new features or functionality label Feb 22, 2023
@bamurtaugh
Copy link
Member

cc @eleanorjboyd I'm making this as a feature request, but if you think it's a bug, please just let me know.

@vscodenpa vscodenpa added this to the Backlog Candidates milestone Feb 22, 2023
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@Tyriar
Copy link
Member

Tyriar commented Feb 28, 2023

This is happening because of the way the SSH extension works, VS Code uses SSH to communicate with the remote, but on the remote we launch a regular local shell so the text is copied but it's copied on the remote's clipboard, not the local clipboard.

Given this, I think feature request is right.

@Tyriar Tyriar assigned eleanorjboyd and unassigned Tyriar and meganrogge Feb 28, 2023
@pszypowicz
Copy link
Author

@bamurtaugh It seems we have 10 upvotes :)

@kishykumar
Copy link

Can we get this fixed please? It really makes tmux useless on VSCode.

@kdkavanagh
Copy link

+1, I have remote copy-paste working with tmux on a rhel host via iterm2 on a mac, so I dont think it's a limitation with ssh itself

@raven42
Copy link

raven42 commented Jun 15, 2023

I don't believe this is limited to just Mac vscode. I am running Windows 10 with vscode 1.79.1 with an Ubuntu LTS remote SSH and seeing the same behavior. Copy/paste to the local clipboard works fine for other terminal sessions, but after trying various things found on the web I can't get the copy/paste behavior through tmux to work as expected.

@zhuoqun-chen
Copy link

Also vote for this feature.

I configured remote-ssh to open tmux as default integrated terminal profile.

After tmux is launched, I can't copy and paste using vim-like copy-mode-vi by pressing y. I managed to use a tmux-plugin called tmux-yank to copy selected words into the command line, but they won't go inside my local macbook's system clipboard. Now I temporarily hold alt key to copy via mouse, but being able to yank directly via y would be lovely!

Thank you for implementing this feature!

@avamsi
Copy link

avamsi commented Aug 19, 2023

I think xtermjs/xterm.js#3260 is related?

@duenzo
Copy link

duenzo commented Feb 16, 2024

Also vote for this feature

@navratiljan
Copy link

+1 for this feature

@Tyriar
Copy link
Member

Tyriar commented Apr 22, 2024

/duplicate microsoft/vscode#193508

@Tyriar Tyriar closed this as completed Apr 22, 2024
@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 22, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests