Answer a clipboard read with any clipboard types and listing #24
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wayfinder:map
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
jeff/harrier#24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #23
A kitty clipboard read (OSC 5522) is answered with one piece of text. harrier's
ClipboardAnswerisdenied | text, andSession.answerClipboardReadserves that text under each text type the program asked for, reportingavailableastext/plain, hardcoded.The Ghostty fork already takes more.
clipboard.Read.Result.successcarriescontents, a list of (type, bytes), and a caller-suppliedavailable.encodeReadReplyserves each requested type its own DATA packets, and a type with no entry gets none, which the protocol reads as "not available". So this needs no fork change and no pin bump.What done looks like
ClipboardAnswercarries the contents read, as (Clipboard type, bytes) pairs, and the types the clipboard has, for the listing.Session.answerClipboardReadhands both to the fork.text/plain.Answer a kitty clipboard read with any clipboard type, in the Ghostty forkto Answer a clipboard read with any clipboard types and listingDone in
59714c2.ClipboardAnswerisdenied | contents{read, available}.clipboardResultserves each requested type its own bytes, serves a text type from text read under any name, and passesavailablethrough. No Ghostty fork change was needed. The window still answers withtext/plainalone, until #25 and #26.