Repository navigation
Paste into the desktop terminal - #1265
Conversation
The terminal control clears a selection and turns Ctrl+C/V into control bytes, so the gesture is claimed on the view while the terminal is focused. A paste is the composer's bracketed block, with no trailing submit.
3f88688 to
3bc3fa1
Compare
The control turns that chord into a control byte or ignores it, so the view claims it while the terminal is focused. The block is the composer's bracketed paste, with no trailing submit.
|
Changelog
|
PR Summary by QodoEnable platform paste shortcuts in desktop terminal views
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
Closes #1200 — AI-3282
What & why
On the desktop Terminal view, the paste chord never inserts clipboard text. The terminal control turns Ctrl+V into a control byte and does not handle ⌘V. The workspace and remote session views claim the platform paste chord while the terminal is focused and send the same bracketed block the composer uses, without a trailing Enter. Copy is left to the control, and Ctrl+C still interrupts.
Where to look
The handler sits on the view, above the control, because the control's key handler runs first and ignores Handled. A paste goes through Model.Send, so a read-only attach still drops it. The remote pane only forwards special keys, so a paste there does not inject text.
Verification
dotnet run --project test/Capacitor.App.Tests.Unit/Capacitor.App.Tests.Unit.csproj -- --treenode-filter '/*/*/TerminalClipboardTests/*'Passed: 5, failed: 0.