-
Notifications
You must be signed in to change notification settings - Fork 30k
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] do not show all matches on first tab #7665
Comments
@mscdex @trevnorris FYI, Its implemented for |
We should do this with or without |
yes, since editor mode PR has support for LCP Tab completion, I thought of modify it to support for all cases. |
Would very much like this feature. We can probably re-use some code, because this works:
|
Ooh. How about automatic path searching? e.g. |
Already kind of works, but it wrongly expands Oh, and adding to the wishlist for tab-completion, |
That would be awesome, but these kind of things get really tricky, as |
True, probably not worth the risk and hassle to implement something timeout-based. |
Incorporated tab completion support in #7275 |
PR for solving this on the |
Show `TAB` completion suggestions only after the user has pressed `TAB` twice in a row, so that the full list of suggestions doesn’t present a distraction. The first time a `TAB` key is pressed, only partial longest-common-prefix completion is performed. This moves the `readline` autocompletion a lot closer to what e.g. `bash` does. Fixes: nodejs#7665
Whoot! Thanks @addaleax |
It's an annoyance that the REPL prints out all possibilities the first time hitting the tab. It would be much better if it simply autocompleted as much as possible and waited for a subsequent tab before printing out all matches. Here's an example usages:
To produce
Buffer.allocUnsafeSlow
, but in doing so I get a screen filled with matches that I know I don't want.Throwing this out there in case anyone wants to take care of it before I do (which I don't plan to in the near future).
The text was updated successfully, but these errors were encountered: