This repository was archived by the owner on Oct 28, 2020. It is now read-only.
restore ctrl-enter functionality #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi.
This is unpolished (although suits my own purposes) but I thought you might want to consider restoring the ctrl-enter functionality for entering multi-line entries. At the moment I think you are missing one function from the original API: linenoiseSetMultiLine - which may become more useful again if this feature is restored.
The other suggestion is allowing user to press a defined key (maybe F2 as a default) to have enter just map to new line in the buffer and shift-enter complete the entry. useful for a REPL to be able to copy and paste multi-line code (I am using with Lua).