For those unfamiliar, the benefit of OSC52 support is the ability to copy
to clipboard from a terminal,
so even in Wayland session when you are doing ssh to some remote host, you can copy to clipboard
from neovim running there or any editor that supports OSC52.
On Tue, 13 Aug 2024 18:05:22 -0700 Soren Stoutner <soren@debian.org> wrote:
I am guessing by your comments that Ctrl+Shift+C and Ctrl+Shift+Vdoesn’t work*
for some reason.*
Those shortctuts should work as usual. But the idea is to use editors that integrate with system
clipboard in some way. I.e. if in neovim you use clipboard providers, you
can copy editor's own
selection into system clipboard instead of relying on terminal's selection. It makes a difference in
how easy it's to do things.
In case of local usage, neovim would rely on xsel or wl-copy to send text
to system clipboard,
but when you do it remotely over ssh, you either need to forward X, or find some other ways.
Without forwarding X (good for Wayland world), OSC52 is such mechanism.
OSC = operating system command [escape sequence].
It basically signals to the terminal through some special escape sequence, that some portion
of text should be copied to the clipboard. And it works very neatly.
Regards,
Shmerl.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 156:57:15 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,474 |