-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
[RFC]: add support for multi-line editing to the REPL #2060
Comments
Another option for this, which may be better, is to enter an "editor" mode. This would be similar to the built-in Node.js REPL which supports the |
@kgryte I tried the |
@Snehil-Shah Oh! Interesting. You're right about Yes, I suppose I had in mind something more like |
However, with |
@kgryte I think having both would be great, a nano type editing mode can allow for writing long scripts and programs with maybe even options to export it to a |
Agreed. |
Modifiers were generally not recognized on my Macbook Pro. In general, we should rethink multi-line editing and, once we do some more R&D, add support in a follow-up PR. Ref: stdlib-js#2060
Following up on this issue, with the addition of auto-pairing closing symbols, the current approach for multi-line editing (relying on incomplete expressions) no longer works very well and makes for a frustrating UX. Recently, I ended up turning off |
@kgryte We need a keybinding to make multiline editing easier. Yes ALT+ENTER didn't work the last time we tried, but I assume different terminals might be interpreting it differently because of ENTER. We can try a combination like CTRL+O (like IPython) to enter multiline editing and it should work. |
Description
This RFC proposes adding support for multi-line editing to the REPL. Currently, we a user does
where
<|>
represents the cursor, hitting the up arrow auto-completes previous commands, rather than allows a user to move the cursor up to edit existing content.It would be nice to allow users to support multi-line editing, as otherwise they need to hit ENTER and start over.
Related Issues
No.
Questions
Other
No.
Checklist
RFC:
.The text was updated successfully, but these errors were encountered: