-
Notifications
You must be signed in to change notification settings - Fork 56
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
keybindings to cut/copy/paste to/from clipboard #103
Comments
update: am able to copy text from atom to outside, and have updated the title to reflect this. The issue is with copying text from external sources to atom buffer. |
Which OS are you on? What do you see in the key binding resolver (cmd-. on mac) when you use the standard OS paste key (e.g. cmd-v on mac)? |
Sorry for the slow response here. That explains it, though: the problem is that emacs' ctrl-v (scroll-up) conflicts with what you'd expect of a regular Linux desktop app (paste). I just tested with Emacs on Ubuntu (16.04), and it too favors scroll-up for ctrl-v, so I'm inclined to keep this behavior, at least as the default. If you're just after direct a substitute for If you want to permanently override
|
In my experience, in current versions of Emacs, when I cut or copy something in another program, it is inserted at the top of the kill ring, so C-y pastes it. The kill ring here needs to work the same way. |
I agree with @MartyGentillon @oggy please consider adding this feature to |
Tomorrow I should have a pull request for this. |
Now, if the clipboard integration is enabled, the kill rings will be updated with the contents of the system clipboard before every yank or kill. see avendael#103
An initial implementation #130. There are a couple concerns: first, when yanking to multiple cursors, a multi-line system clipboard should be split between the cursors based on lines. (The current behavior is similar to my complaint in sublime-emacs/sublemacspro#176) Second, I am not certain that the "kill-ring per cursor" design is good. It might be better to have one unified kill ring that is aware of multiple cursors, and multiple cursor yanks. |
Now, if the clipboard integration is enabled, the kill rings will be updated with the contents of the system clipboard before every yank or kill. see #103
So, the basic feature is now available. Todos include possibly rethinking the kill-ring-per-cursor feature such that cuts from other programs integrate the way they would with the normal cut / paste feature (specifically where if you paste two lines of text with two cursors, each line goes to one cursor.) |
Closing this, as the requested functionality is there now - thanks @MartyGentillon . |
Just found atomic-emacs from this issue. Thanks for having a fix for one of my biggest complaints of atom. |
Hi, |
Is there a keybinding for clipboard pastes from external sources such as the browser....atomic-emacs supports local cut/copy paste using regular emacs keybindings but not able to paste stuff from outside (without using the
right click mouse->paste
)The way Emacs seems to handle it is through
M-x clipboard-yank
andM-x clipboard-kill-region
.The text was updated successfully, but these errors were encountered: