Context
When you paste with the terminal's own paste (Cmd+V in most macOS terminals, right-click, middle-click), the text arrives as typed keys: each newline goes through auto-indent, and a long paste becomes many undo steps. Terminal.Gui 2.4+ turns on bracketed paste and raises a Paste event with the whole block. This task puts that block through the same paste Ctrl+V uses. Needs #442, which moves TuiCode to Terminal.Gui 2.5. Part of #40.
Acceptance criteria
Tests
- A paste event with multi-line, indented, CRLF and tab text inserts it verbatim, as one undo step.
- Multi-caret and replace-selection paths share
Ctrl+V's behaviour.
- Paste routed to the focused view: editor, Find field, a dialog's text field.
Out of scope
Context
When you paste with the terminal's own paste (
Cmd+Vin most macOS terminals, right-click, middle-click), the text arrives as typed keys: each newline goes through auto-indent, and a long paste becomes many undo steps. Terminal.Gui 2.4+ turns on bracketed paste and raises aPasteevent with the whole block. This task puts that block through the same pasteCtrl+Vuses. Needs #442, which moves TuiCode to Terminal.Gui 2.5. Part of #40.Acceptance criteria
Ctrl+Zremoves the whole paste.Ctrl+Vdoes today.Tests
Ctrl+V's behaviour.Out of scope
windowsdriver, which doesn't read VT input; paste there stays as today.Cmd+Vmapping (Cmd+V in the terminal integrations pastes the laptop's clipboard over SSH #447).