-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Yank to system clipboard #76
Comments
I'd like to see this added, I recommend using https://github.com/alacritty/copypasta since it also includes Wayland support. Both yank and delete always use helix/helix-term/src/commands.rs Line 1766 in 661dbdc
Which is a dumb hashmap with a lock right now: helix/helix-core/src/register.rs Line 9 in 661dbdc
I think we should special case certain registers inside The register changing via on_next_key example: helix/helix-term/src/commands.rs Lines 2265 to 2294 in 661dbdc
|
If no one is working on that yet, I'll take it |
Selection is copied into system clipboard when yanking to register `+`. Close helix-editor#76
Selection is copied into system clipboard when yanking to register `+`. internal register `+` is still updated because we want to keep multicursor capabilities when pasting later. Closes helix-editor#76
Selection is copied into system clipboard when yanking to register `+`. internal register `+` is still updated because we want to keep multicursor capabilities when pasting later. Closes helix-editor#76
Selection is copied into system clipboard when yanking to register `+`. internal register `+` is still updated because we want to keep multicursor capabilities when pasting later. Closes helix-editor#76
Selection is copied into system clipboard when yanking to register `+`. internal register `+` is still updated because we want to keep multicursor capabilities when pasting later. Closes helix-editor#76
Some discussion on the implementation: #119 (comment) |
We also discussed on matrix about not using registers, for example using commands (
By ash from matrix (I don't know your GitHub ID) |
I still think using registers is a cleaner approach. Because we have quite some keys that work with clipboard, like |
Could helix support OSC 52 as a simpler alternative? that is if we only care about yanking to the clipboard and not from it. |
I guess it could easily be supported as a plugin. I'm not sure if this is useful enough to be part of the core (I personally never used it). |
I wish it is in core, I always use this. I missed this in kakoune and I had to manually copy out the region with lots of spaces in kakoune, bad experience. |
This commit adds six new commands to interact with system clipboard: - clipboard-yank - clipboard-yank-join - clipboard-paste-after - clipboard-paste-before - clipboard-paste-replace - show-clipboard-provider System clipboard provider is detected by checking a few environment variables and executables. Currently only built-in detection is supported. `clipboard-yank` will only yank the "main" selection, which is currently the first one. This will need to be revisited later. Closes helix-editor#76
This commit adds six new commands to interact with system clipboard: - clipboard-yank - clipboard-yank-join - clipboard-paste-after - clipboard-paste-before - clipboard-paste-replace - show-clipboard-provider System clipboard provider is detected by checking a few environment variables and executables. Currently only built-in detection is supported. `clipboard-yank` will only yank the "main" selection, which is currently the first one. This will need to be revisited later. Closes helix-editor#76
This commit adds six new commands to interact with system clipboard: - clipboard-yank - clipboard-yank-join - clipboard-paste-after - clipboard-paste-before - clipboard-paste-replace - show-clipboard-provider System clipboard provider is detected by checking a few environment variables and executables. Currently only built-in detection is supported. `clipboard-yank` will only yank the "main" selection, which is currently the first one. This will need to be revisited later. Closes helix-editor#76
This commit adds six new commands to interact with system clipboard: - clipboard-yank - clipboard-yank-join - clipboard-paste-after - clipboard-paste-before - clipboard-paste-replace - show-clipboard-provider System clipboard provider is detected by checking a few environment variables and executables. Currently only built-in detection is supported. `clipboard-yank` will only yank the "main" selection, which is currently the first one. This will need to be revisited later. Closes #76
It would be nice if you could yank the current selection to the system clipboard.
The text was updated successfully, but these errors were encountered: