Repository navigation
Pasting with the terminal's own paste goes in as one paste - #480
Merged
Merged
Conversation
TG 2.5 turns on bracketed paste and hands the focused view the whole block as Command.Paste, with no key. At one caret that already went in verbatim, but with several carets it skipped OnKeyDown's multi-caret paste and went in at the primary caret only. EditorTextView.OnPaste now sends it through PasteAtCarets (several carets) or EditAtPrimary (one), so it shares Ctrl+V's behaviour and undo records the carets from before the paste. Checked against the built app in a pty: an indented block keeps its indentation, one Ctrl+Z takes it out, and two carets get a line each. Closes #446 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pasting with the terminal's own paste (
Cmd+V, right-click, middle-click) now goes in as one paste everywhereCtrl+Vdoes. An indented block keeps its indentation exactly, oneCtrl+Ztakes the whole paste out, a selection is replaced, and with several carets each one gets the paste the wayCtrl+Vgives it to them: a line each when the counts match, otherwise all of it at every caret.Closes #446
Notes for review:
Ctrl+Zrestored the file, and two carets got1and2.🤖 Generated with Claude Code
a-team try tuicode 480