Skip to content

Feature request: Autocomplete filenames for fs functions in repl #17764

Closed
@not-an-aardvark

Description

@not-an-aardvark
  • Version: 9.2.1
  • Platform: macOS Sierra
  • Subsystem: repl

If I type the following code into the repl, and then press tab, a list of autocomplete suggestions appears for the require-able files in the current directory:

require('./

It would be nice if a similar thing would happen when calling methods like fs.readFileSync. Specifically, after typing the following code, I would want the REPL to autocomplete with all existing files in the current directory:

fs.readFileSync('./

This would be useful when using the REPL to process/view a file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.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