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
Middle click paste doesn't work on Linux #110
Comments
Same problem in: Version 0.10.1 Ubuntu 15.04 |
Please make it optional. Middle-click can happen by accident when scrolling. |
It's not optional in any other linux software that I know of? |
Just to be sure I do the right thing: The change should be: "middle click should be bound to paste in Linux" (i.e. what Ctrl-V does) |
Nope. Linux, via XWindows, has multiple clipboards. One called CLIPBOARD is used for Windows style ctrl+c, ctrl-v copy & paste. One called PRIMARY is used to do middle click paste. This works like this:
You just have to implement/support the second step. Like I said, Atom, which is also based on electron and is open source - supports this correctly; so I might be possible to look at their implementation? They're also MIT licensed I think, so that shouldn't be a problem. |
👍 |
Version 0.10.8 still not works (Ubuntu 14.04). Hope VSC has faster support team then Skype (bugs 2 years old not fixed). |
Yes, it's not the same as paste -- the dual clipboard thing is often irritating, but at least standard on Linux. I use it all the time. I'd assume it's a high-level X-windows function. Something high-level in the code must be actively blocking it for the editor portions of the window. Because it works to middle-click paste into this pop-up text input: And it works in the find/replace pop-up dialog's text inputs: ETA: Interesting to note -- selecting text in the editor pane is also not populating the PRIMARY clipboard. While it does populate when highlighting text in the find/replace dialogs. So it's as if the primary clipboard functionality (both copy and paste) is entirely disabled for the editor pane. |
It's still not working in the Feb release. |
With the March release, it will be under a setting called |
It is working great! |
@alexandrudima I've had it turned on for a while now and haven't had any issues. I don't use it often, I've probably used it around 4-5 times spread out across that time. Do you think it's safe to turn on by default? |
👍 My concern was with any negative perf impact (writing to the clipboard on every selection change), but if you've used it and all looks good then let's turn it on by default |
On linux, whenever you select some text, this text is automatically placed onto a separate X11 clipboard called PRIMARY. This can then be pasted anywhere by middle clicking.
This works (pretty much) everywhere - including other electron apps like Atom - but doesn't work in Visual Studio Code, sadly.
VSCode Version:
Version 0.10.1
Commit df35236
Date 2015-11-17T15:21:23.766Z
Shell 0.34.1
Renderer 45.0.2454.85
Node 4.1.1
Linux Version:
Ubuntu 13.10
The text was updated successfully, but these errors were encountered: