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

Implement "multiline" prompt #2

Closed
mikaelmello opened this issue Jun 24, 2021 · 6 comments
Closed

Implement "multiline" prompt #2

mikaelmello opened this issue Jun 24, 2021 · 6 comments

Comments

@mikaelmello
Copy link
Owner

mikaelmello commented Jun 24, 2021

Motivation looks similar to #1, the idea here is to allow the user to input a multi-line text without having to open a text editor.

Not sure how useful this would be, as I consider #1 more important.

Edit: this is now activelly not planned to be implemented by the maintainer (me...). I'll be leaving this open in case anyone is interested in implementing it.

@VladimirMarkelov
Copy link

It won't be easy if you are going to keep the package crossplatform.

Maybe this one can be a source of inspiration: https://github.com/Avarel/mini-me

@mikaelmello
Copy link
Owner Author

It won't be easy if you are going to keep the package crossplatform.

Can't say I have much experience on that front, what kind of challenges are you expecting?

I thought it would be pretty standard stuff, just a lot of work.

Anyway, probably another reason to prefer editor support over this :)

@VladimirMarkelov
Copy link

When I was writing my comment, I did not know yet that you had already used crossterm package. It is already crossplatform and it makes my comment unrelated.

I agree, editor support is good to have as well. I'm fine with calling an editor to type long text - I do it to enter multi-line git comments. :)

@gopherine
Copy link

would love to see this feature ... I have a use case where i need to write few bullet points , but opening an editor to do this feels really unnatural

@mikaelmello
Copy link
Owner Author

@gopherine unfortunately it isn't in our plans due to how complex a multi-line editor would be

I'd gladly review any PRs but it should be a lot of work to implement it right and I unfortunately don't have the time atm

@mikaelmello
Copy link
Owner Author

Unfortunately there isn't really much of a point in keeping this open. Even Github's CLI uses a text editor for larger inputs.

The point about accepting it if someone implements stays :)

@mikaelmello mikaelmello closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants