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

Paste from PRIMARY clipboard (mouse middle click) not pasting to command bar #4188

Open
brianjmurrell opened this issue Oct 17, 2019 · 6 comments

Comments

@brianjmurrell
Copy link

Describe the bug
Cannot paste from the PRIMARY clipboard on X11 to the command bar (for lack of [knowing] a better term)

To Reproduce

  1. In an editor window with text, highlight some text
  2. In normal mode, type / to start a search on the command bar
  3. Middle click the mouse to paste the PRIMARY clipboard, like you can do in most every X11 applicatoin
  4. See paste go into the editor window instead of onto the command bar

Expected behavior
Text should be pasted to the command bar

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.11.2
  • VSCode version: 1.38.1
  • OS: Fedora 30

Additional context
To be clear, this is not the same paste as <CTRL>-c/<CTRL>-v. This is the middle-mouse-button-click paste that simply pastes whatever text is currently (or was most recently) highlighted.

@jordg
Copy link

jordg commented Dec 5, 2019

Also any Linux. Linux automatically inserts into the keyboard buffer on select text. This is a different buffer to the buffer
Copy on select -> paste on middle mouse click

@jamesjtong
Copy link

yep getting this as well

@Dieterbe
Copy link

I have the same problem, only difference i use shift+insert to paste. In vim this will go into my command bar. in vscode it inserts the text into the file i'm editing :/

@J-Fields
Copy link
Member

Pretty sure the VSCode API won't let us know about middle mouse clicks. @Dieterbe feel free to open a separate issue for that, we should be able to handle <S-INS>

@Dieterbe
Copy link

ok, #4511

@inolen
Copy link

inolen commented Oct 21, 2020

@J-Fields I think the issue I'm hitting is related here.

I've rebound copy/paste in VS Code's keyboard shortcuts to use ctrl-shift-c / ctrl-shift-v which makes copy and paste feel more at home when editing files, but pasting to the command bar is only done with ctrl-v. Is there a way to modify the shortcut which pastes to the command bar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants