-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
repl: Proposal for better repl #8195
Comments
There are a consideration: introducing the combining types like For example, in my |
@yorkie Tried |
@princejwesley it depends on what shell you are using IMO, it doesn't work at iTerm. Let me verify it again later :) |
What about just enter and shift+enter or similar for execute and continue respectively? |
@yorkie I use same |
@mscdex Terminal emits same value for both |
Sorry @princejwesley you are right, it works :-) |
This makes sense. I do like the idea of |
@jasnell We can't capture ~ 🙈 ₹^M (ctrl+v, enter)
~ 🙈 ₹^M (ctrl+v, shift+enter) For me, |
Ok, I'm good with that then. |
@nodejs/collaborators if there is no objection, I'll start work on it |
What about requiring that, for an expression to be submitted, it must be followed by 2 newlines or by a semicolon? |
@princejwesley Are you still working on this? |
@Trott it's implemented long ago |
@princejwesley You mean #9601? Can you rebase against master and hopefully some of the people that +1'ed it can give it an official LGTM and we can get it landed? |
@Trott sure, I'll do |
Since #9601 has been closed, is there any reason for this to remain open? |
If @princejwesley wants to keep working on this, I see no reason not to keep it open. |
heh... that answers that then. Really do appreciate the work and effort on this @princejwesley |
This is my idea/wish to address Node.js repl related issues.
Automatic multiline command mode has serious issues.
(we may have to fix the code if vm emits different error string in next release)
.break
/^C
the expression to continue.No welcome message (it helps to see version number)
Proposal
execute
&continue
actions^M
or enter key to execute the command (current behavior)^J
to continue (Hand over the problem to user, let user decides it) building multiline expression.Welcome message template
e.g.
@nodejs/collaborators, I am happy to implement this if there is no objection
Note : Current system executes code when
^M
,^J
orenter
pressed.^I
ortab
for code completionThe text was updated successfully, but these errors were encountered: