Skip to content

Possibility to get/set the local clipboard from remote terminal? #5905

Closed

Description

@ldorigo

Hi,

I'm not sure this is possible or worth the effort, but it's worth asking.
On linux one can pipe the output of terminal command into the system (X) clipboard:

command | xsel -ib

The same is possible on mac:

command | pbcopy

And I'm sure this can be done on windows too.
It's incredibly practical and I use it all the time but currently it isn't possible in a remote session as it would set the remote server's clipboard, not the local one.

  1. Is there any chance that this could be added to the remote extension?
  2. If not, is it possible to implement it as a plugin or separate extension? I think the remote extension is closed source, so not sure how I could go about it?

Activity

  1. added
    sshIssue in vscode-remote SSH
    feature-requestRequest for new features or functionality
    on Nov 17, 2021
  2. tanhakabir commented on Nov 17, 2021

    @tanhakabir

    Hey! Thank you for the request! This isn't a super trivial feature but the work would need to be done in VS Code core not the remote extension

  3. vscode-triage-bot commented on Nov 17, 2021

    @vscode-triage-bot
    Collaborator

    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!

  4. ldorigo commented on Nov 19, 2021

    @ldorigo
    Author

    Could you elaborate? If it's in the core, then it might be easier to implement the functionality as a separate extension (as the core is open source). But isn't this specifically something the remote extension would need to handle? I guess in a similar way you handle code <file> in a remote terminal - not sure how exactly you implemented that but I assume you're automatically adding .vscode_server/bin to the path when a remote terminal is started?

  5. tanhakabir commented on Nov 19, 2021

    @tanhakabir

    The remote extension mainly handles connecting and maintaining the connection. The actual terminal and such is maintained by the main repo. You can install extensions in the remote if you'd like to make an extension. I'm not sure if the terminal in core has awareness of being in a remote environment or not (my assumption is that it doesn't) so there would some structural changes needed to enable this.

  6. vscode-triage-bot commented on Jan 7, 2022

    @vscode-triage-bot
    Collaborator

    This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding

  7. vscode-triage-bot commented on Jan 18, 2022

    @vscode-triage-bot
    Collaborator

    🙁 In the last 60 days, this feature request has received less than 10 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  8. booyaa commented on Mar 1, 2022

    @booyaa

    Just in case anyone else comes across this ticket, someone made a plugin that uses a 3rd party tool called piknik. There's a bit of setup, but it works great and has a vscode extension

  9. locked and limited conversation to collaborators on Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    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