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

multiline support #79

Closed
danburkert opened this issue Sep 27, 2016 · 7 comments
Closed

multiline support #79

danburkert opened this issue Sep 27, 2016 · 7 comments

Comments

@danburkert
Copy link

The README mentions multiline support, but I can't find a way to enable it. Is this feature implemented?

@gwenn
Copy link
Collaborator

gwenn commented Oct 1, 2016

Multiline support is enabled by default and there is currently no way to disable it.

@hayd
Copy link
Contributor

hayd commented Oct 10, 2018

How do you enter a multiple line entry? Following the example in the readme...

I was imagining shift+Enter but nothing jumps out in the README, and is there a way to force multiline e.g. if there are open parenthesis?

@gwenn
Copy link
Collaborator

gwenn commented Oct 10, 2018

I guess you want #153.
But multiline support in the README means https://github.com/antirez/linenoise#single-line-vs-multi-line-editing or horizontal-scroll-mode=off or set wrap with vim.

@hayd
Copy link
Contributor

hayd commented Oct 10, 2018

Is there an example of implementing this with rustyline, or does "do it by yourself" mean "not with rustyline"?

@gwenn
Copy link
Collaborator

gwenn commented Oct 11, 2018

Currently, there is no example here but in a dependent crate:
https://github.com/kyren/rlua/blob/master/examples/repl.rs#L40

@RadicalZephyr
Copy link
Contributor

In case anybody here is interested, I'm working on true multi-line editing support in #182. Feedback on the proposed API is very much appreciated.

@gwenn
Copy link
Collaborator

gwenn commented Jan 5, 2020

Fixed in version 6.0.0

@gwenn gwenn closed this as completed Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants