Repository navigation
Replies: 3 comments 1 reply
|
I like some of the ideas from Ghostty's solution: https://ghostty.org/docs/config/reference#clipboard-read
The possible values are Unfortunately, setting it to Today, I'm using the following workaround to avoid the freezing: vim.opt.clipboard = "unnamedplus"
if vim.env.HERDR_ENV == "1" then
local osc52 = require("vim.ui.clipboard.osc52")
local function internal()
return { vim.fn.getreg('"', 1, true), vim.fn.getregtype('"') }
end
vim.g.clipboard = {
name = "osc52-copy-only",
copy = {
["+"] = osc52.copy("+"),
["*"] = osc52.copy("*"),
},
paste = {
["+"] = internal,
["*"] = internal,
},
}
elseif vim.env.SSH_CONNECTION then
vim.g.clipboard = "osc52"
end |
|
Dug into why this hangs. herdr just doesn't answer OSC 52 read queries, it never wires up the clipboard-read side of libghostty, so the query gets no reply at all. Neovim waits 1s, prints "Waiting for OSC 52 response...", waits 9 more, then gives up. With @robsonpeixoto's Also, that |
|
+1 — I hit this in local sessions too, not only over On the design question above: the full version doesn't necessarily need herdr to invent its own ask/allow/deny policy. While a client is attached, herdr can forward the pane's read query to the outer terminal and route that terminal's answer back. The outer terminal's own clipboard policy (Ghostty's I've implemented the forwarding version on my fork (local sessions, |
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
OSC 52 paste doesn't currently work inside herdr.
requested change
Support OSC 52 paste inside herdr.
why you want this
I use OSC 52 paste.
All reactions