-
Notifications
You must be signed in to change notification settings - Fork 13
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
Pasting from system clipboard into ssh/tmux/emacs session? #10
Comments
I believe this would be possible, but I'm not sure a lot of terminals support it. Some authors of terminal emulators believe that the OSC features represent a security risk, and refuse to allow the ability to write to the clipboard. I just tested iTerm2, Kitty, and xterm and it seems that only xterm currently supports reading from the system clipboard. It might be worth adding just for folks who run xterm, with the hopes that more terminal emulators will add it in the future. I'm curious why you think it'd be handy to have? I mean why not use the OS level hotkey to paste from the system clipboard? I personally think it might be nice for the contents I paste from the system clipboard get copied to the kill ring in Emacs. |
Actually, I take that back about kitty. You can optionally allow clipboard read via OSC 52 via the the config file.
Very cool. |
I've never found a paste that came from OS clipboard through emacs to paste properly. Using evil along with it makes it even worse. I usually get a lot of random artififacts along with the paste. |
+1 for this feature. It will be really handy. |
Maybe I' missing something out here:
|
So Clipetty makes Yes, Hope this helps. |
Thank you so much for pointing that out.
Reason being, I guess: I'm using Windows10 and the Windows Terminal Preview. |
@herop The second statement you made has not been implemented. And that's the discussion of this thread. Windows Terminal Preview does not have OSC 52 support, so the first statement won't work either. I could not find any decent terminal emulator on Windows. Even Alacritty has some keybinding issue with Emacs on Windows. Hopefully, WT will get more support in the future. |
due to spudlyo/clipetty#10 This reverts commit 38b4bf9.
…rating System's clipboard, but not the reverse spudlyo/clipetty#10
I tried adding support for this: (defun osc52-paste ()
(clipetty--emit
(concat clipetty--osc-start "?" clipetty--osc-end))) But I don't know how to read the terminal emulator's answer from the tty. Currently the answer goes as input to emacs which messes it up. |
Hi! Amazing package! Thanks for pushing it out. :)
Is your feature request related to a problem? Please describe.
I was wondering how feasible it would be to go "in reverse", that is, copying from the system clipbord (say OSX clipboard) into my ssh->tmux->emacs session.
Thanks for reading!
The text was updated successfully, but these errors were encountered: