Skip to content

[repl] do not show all matches on first tab #7665

@trevnorris

Description

@trevnorris
  • Version: All
  • Platform: All
  • Subsystem: REPL (shipped)

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:

> Bu<TAB>.al<TAB>U<TAB>S<TAB>

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.readlineIssues and PRs related to the built-in readline module.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions