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

C-y doesn't paste from Windows clipboard #4

Open
alexeiz opened this issue Jun 8, 2016 · 6 comments
Open

C-y doesn't paste from Windows clipboard #4

alexeiz opened this issue Jun 8, 2016 · 6 comments

Comments

@alexeiz
Copy link

alexeiz commented Jun 8, 2016

On Windows, C-y doesn't paste from the clipboard. Since C-v is taken, there is no other way to paste from the clipboard.

@kpping
Copy link
Contributor

kpping commented Jun 20, 2016

I think it is an expected behaviour since Yank in vscode-emacs (and also other emacs) use its own clipboard buffer.

@sammy44nts
Copy link
Contributor

sammy44nts commented Jul 15, 2016

@alexeiz The shortcut to paste from Windows clipboard is 'Shift+Insert' 😉

@artagnon
Copy link

I don't like the separation either. Can't we merge with the system clipboard?

@sammy44nts
Copy link
Contributor

sammy44nts commented Aug 31, 2016

@artagnon If you really want to get rid of the "Kill ring":
Use this command > shorcut and add the following lines to the array in keybindings.json file.

{
  "key": "alt+w",
  "command": "editor.action.clipboardCopyAction",
  "when": "editorTextFocus"
},{
  "key": "ctrl+w",
  "command": "editor.action.clipboardCutAction",
  "when": "editorTextFocus"
},{
  "key": "ctrl+y",
  "command": "editor.action.clipboardPasteAction",
  "when": "editorTextFocus"
}

This should do the trick.
However, I really don't understand the point of using a plugin to get VS Code to behave like emacs and not using the "Kill ring". 'Ctrl+X' and 'Ctrl+V' are respectively 'Shift+Del' and 'Shift+Insert' which are already the same keybindings on Windows... and 'Ctrl+C' or 'Ctrl+Insert' are the keybindings for "Copy to clipboard" action.

@artagnon
Copy link

I already have those overrides (Ctrl+k is an annoyance), and no: there's a better way to implement the kill-ring. Simply write to both the system clipboard and a private clipboard. When Alt+y is invoked, open a QuickPick showing the contents of the kill ring that I can fuzzy match against (just like anything else).

@sammy44nts
Copy link
Contributor

The fuzzy paste could be of interest for some people so you should definitely make an extension on your own with it. And pull request it to @hiro-sun if you want.
In my opinion, this is way too different from emacs behavior to be an improvement of the "Kill ring".

SebastianZaha added a commit to SebastianZaha/vscode-emacs-friendly that referenced this issue Jan 14, 2017
Addressing hiro-sun#4 and hiro-sun#38

Removed the kill ring implementation (which was not on parity with emacs anyway). The cut/paste/copy commands now only deal with the system clipboard, no separate kill ring.

Using the copy-paste module for handling the clipboard, as recommended in multiple issues on vscode repo (microsoft/vscode#6994 and various others).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants