Skip to content

Allow to copy from remote tmux to local clipboard #8049

Closed

Description

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"

Activity

  1. bamurtaugh commented on Feb 22, 2023

    @bamurtaugh
    Member

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

  2. vscodenpa commented on Feb 22, 2023

    @vscodenpa

    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!

  3. Tyriar commented on Feb 28, 2023

    @Tyriar

    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.

  4. pszypowicz commented on Mar 1, 2023

    @pszypowicz
    Author

    Brigit Murtaugh (@bamurtaugh) It seems we have 10 upvotes :)

  5. kishykumar commented on Mar 20, 2023

    @kishykumar

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

  6. kdkavanagh commented on Apr 3, 2023

    @kdkavanagh

    +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

  7. raven42 commented on Jun 15, 2023

    @raven42

    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.

  8. zhuoqun-chen commented on Aug 2, 2023

    @zhuoqun-chen

    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!

  9. avamsi commented on Aug 19, 2023

    @avamsi

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

  10. duenzo commented on Feb 16, 2024

    @duenzo

    Also vote for this feature

  11. navratiljan commented on Feb 26, 2024

    @navratiljan

    +1 for this feature

  12. Tyriar commented on Apr 22, 2024

    @Tyriar
  13. locked and limited conversation to collaborators on Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)feature-requestRequest for new features or functionalitysshIssue in vscode-remote SSH

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions