Skip to content
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

brakceted paste for nix repl #12086

Open
2 tasks
Freed-Wu opened this issue Dec 19, 2024 · 2 comments
Open
2 tasks

brakceted paste for nix repl #12086

Freed-Wu opened this issue Dec 19, 2024 · 2 comments
Labels
feature Feature request or proposal

Comments

@Freed-Wu
Copy link
Contributor

Freed-Wu commented Dec 19, 2024

Is your feature request related to a problem?

https://github.com/ConradIrwin/vim-bracketed-paste
https://en.wikipedia.org/wiki/Bracketed-paste

Bracketed paste (sometimes referred to as paste bracketing[1] ) is a mode of some terminal emulators which allows programs running in the terminal to treat pasted text differently from text typed normally

Proposed solution

Detect Bracketed paste, handle it correctly.

Alternative solutions

Additional context

Checklist


Add 👍 to issues you find important.

PS: similiar issue for fennel REPL

@Freed-Wu Freed-Wu added the feature Feature request or proposal label Dec 19, 2024
@Mic92
Copy link
Member

Mic92 commented Dec 19, 2024

Sounds like a good feature to add. Is this maybe something our terminal abstraction library already supports?

@llakala
Copy link
Contributor

llakala commented Jan 10, 2025

Sounds like a good feature to add. Is this maybe something our terminal abstraction library already supports?

editline does not support bracketed paste. readline, on the other hand, does, along with many other features, such as custom keybindings, vi-mode, etc. Nix already supports being compiled to use readline, but the support for it is somewhat limited. It specifically doesn't support completion right now, although there was a working PR that was rejected several years ago.

Even if Nix didn't swap to readline by default over editline (although I personally think it should), it'd be nice to see some amount of support for it. It's currently treated as a second-class citizen to editline, while providing more functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

3 participants