Skip to content

repl: history in blocks, rather than lines. #48146

Description

@hemanth

What is the problem this feature will solve?

In REPL, say if I were to paste a block of code like:

function* naturals() {
  let i = 0;
  while (true) {
    yield i;
    i += 1;
  }
}

On up arrow the history will walk line-by-line, but it would be useful it the navigation were to be block-by-block?

What is the feature you are proposing to solve the problem?

On up/down arrow while navigating REPL history, move in blocks instead of line.

What alternatives have you considered?

No response

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

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions