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 requesting new Node.js features.replIssues and PRs related to the REPL subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions