-
Notifications
You must be signed in to change notification settings - Fork 816
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
Missing support for bracketed paste #404
Labels
enhancement
New feature or request
Comments
See public slack discussion here: https://charmbracelet.slack.com/archives/CQ2E9CGTV/p1660812723955889 |
There's a couple implementation questions here:
|
This was referenced Aug 18, 2022
Merged
This was referenced Dec 6, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bracketed paste is an optional feature that modifies how the terminal handles a "paste from clipboard" action by a user.
(e.g. middle mouse click in xterm, ctrl+shift+v in vte, etc)
The feature must first be enabled by sending
CSI ? 2004 h
to the terminal. After bracketed paste is enabled, each pasted text gets enclosed betweenCSI 200~
andCSI 201~
.The reason why this feature exist is well explained in the wikipedia page:
Likewise, in the Bubbline library, which we intend to use for CockroachDB's SQL shell, we also want to interpret a manually entered newline as a special "run" command, but we also want to give users the option to paste a SQL text containing newline characters without running them.
Prototype implementation
These 3 PRs:
Terminal support
Footnotes
A patch is available here https://gist.github.com/saitoha/2977889 ↩
The text was updated successfully, but these errors were encountered: