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

Node v12 REPL's function preview interacts poorly with shelljs #10

Open
nfischer opened this issue Jan 21, 2022 · 0 comments
Open

Node v12 REPL's function preview interacts poorly with shelljs #10

nfischer opened this issue Jan 21, 2022 · 0 comments

Comments

@nfischer
Copy link
Owner

It looks like node v12's REPL will run javascript code as you type it into the console. This has some annoying interactions with shelljs commands though because:

  1. these have side effects (ex. shell.clear() clears the console)
  2. n_shell has a feature to execute commands without typing parentheses (ex. ls<CR> is the same as ls()<CR>)

These combine to make for a really unpleasant user experience. Ex. typing touch (without pressing enter) will cause touch() to be eagerly executed by the REPL preview, which outputs an error (touch: no files given).

Maybe we should just disable the feature referenced in (2) and require parentheses. For some reason the node REPL won't show the preview for ls(), only for ls.

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

1 participant