-
Notifications
You must be signed in to change notification settings - Fork 58
term: allow multi-line bracketed paste to not create single line with verbatim LFs #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 76633e0) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/687755. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
This PR (HEAD: 48ea529) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/687755. Important tips:
|
Message from Laurent Demailly: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
This PR (HEAD: bc5cb00) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/687755. Important tips:
|
This PR (HEAD: 3d202e8) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/687755. Important tips:
|
Message from Michael Pratt: Patch Set 8: Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Go LUCI: Patch Set 8: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-07-15T21:12:59Z","revision":"8dda9b9326926f8c4dd2e14350cdb5a2c78e1583"} Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Michael Pratt: Patch Set 8: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Go LUCI: Patch Set 8: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Go LUCI: Patch Set 8: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Laurent Demailly: Patch Set 8: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Laurent Demailly: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
This PR (HEAD: 518f25b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/687755. Important tips:
|
Squashed commit of the following: commit 3d202e8 Author: Laurent Demailly <[email protected]> Date: Sun Jul 13 17:27:48 2025 -0700 Handle CR+LF: consume LF after CR, to avoid empty extra lines in dos new line content commit bc5cb00 Author: Laurent Demailly <[email protected]> Date: Fri Jul 11 17:57:31 2025 -0700 keyLF is as much of a key as keyCtrlD so removing the comment commit 48ea529 Author: Laurent Demailly <[email protected]> Date: Fri Jul 11 17:36:03 2025 -0700 missed a spot commit 76633e0 Author: Laurent Demailly <[email protected]> Date: Fri Jul 11 16:57:45 2025 -0700 Allow multi-line bracketed paste to not create single line with LF entry
Message from Michael Pratt: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Laurent Demailly: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
This PR (HEAD: cb5628d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/687755. Important tips:
|
This PR (HEAD: 0cf26df) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/term/+/687755. Important tips:
|
Message from Laurent Demailly: Patch Set 11: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Michael Pratt: Patch Set 11: Code-Review+2 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Go LUCI: Patch Set 11: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-07-21T16:36:25Z","revision":"864065acd04a87a8a4213fdab78f6745984f995e"} Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Michael Pratt: Patch Set 11: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Go LUCI: Patch Set 11: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Go LUCI: Patch Set 11: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
Message from Michael Knyszek: Patch Set 11: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/687755. |
… verbatim LFs Treat "\n" (LF) like "Enter" (CR) Avoids that when pasting 3 lines (with a terminal like kitty, ghostty, alacritty that do not change the clipboard in bracketed paste mode) it turns into 1 prompt looking like: Test> line one ..............line.two ......................line.three Fixes golang/go#74600 Change-Id: I4a86044a4a175eccb3a96dbf7021fee97a5940ce GitHub-Last-Rev: 0cf26df GitHub-Pull-Request: #21 Reviewed-on: https://go-review.googlesource.com/c/term/+/687755 Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
This PR is being closed because golang.org/cl/687755 has been merged. |
Treat "\n" (LF) like "Enter" (CR)
Avoids that when pasting 3 lines
(with a terminal like kitty, ghostty, alacritty that do not change the clipboard
in bracketed paste mode)
it turns into 1 prompt looking like:
Test> line one
..............line.two
......................line.three
Fixes golang/go#74600