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

Support for middle click to paste selection on Linux #2479

Closed
wants to merge 1 commit into from
Closed

Support for middle click to paste selection on Linux #2479

wants to merge 1 commit into from

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Jan 28, 2016

I hope to make this PR eventually fix #110. Currently it inserts the selection from the clipboard on Linux at the current cursor position. The following needs to be done to the PR:

  • Do it the proper way (should this live in codeEditorWidget.ts?)
  • Update the cursor to be under the mouse (emit some event that's picked up by MouseHandler?)
  • Clear the selection after pasting
  • Add tests if possible

Any advice on the first two points by people familiar with the code would be greatly appreciated.

@msftclas
Copy link

Hi @Tyriar, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

alexdima added a commit that referenced this pull request Mar 17, 2016
@alexdima
Copy link
Member

@Tyriar I'm sorry for not giving feedback sooner about this and thank you for showing what is needed to make it work. I used your code to figure out how to use electron's clipboard to get at the special Linux primary clipboard. I didn't merge this because it was a layer-breaker (accessing electron api from a /browser/ folder). We should access electron API only from a /electron-browser/ folder. I know our compilation does not enforce this at this time.

IN 0242c3a, I made an editor contribution, and an editor setting that is off by default to enable it. I suggest we leave it disabled by default, gather feedback, and then enable it by default if all is good.

@alexdima alexdima closed this Mar 17, 2016
@Tyriar
Copy link
Member Author

Tyriar commented Mar 17, 2016

No worries, I didn't have time recently to look at it anyway.

So to test on code alpha I use "editor.selectionClipboard": true? And provided all is well it will be enabled in April?

@alexdima
Copy link
Member

Yep!

Please try it out, I tried only on Ubuntu 14.04.4

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Middle click paste doesn't work on Linux
3 participants