Feature: Please add "U" to undo all changes on the current line

Open
#225 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Begin by locating the JavaScript entry point for normal-mode key handling and any undo-related tests. Done means pressing U in codemirror-vim restores the current line to its pre-edit state; the issue names no specific file or test.

Written by the indexing model from the issue text.

Description

One basic operation I struggle to be without is the U operator to undo all changes on the current line. Can that be added? That operator exists in all other vi/vim emulators I know of and was in vi when I started using it from 1987.

E.g. at least vi, vim, neovim and the vi emulations in VS Code, Pycharm, Zed and bash/readline all have this. I doubt there is any other vi implementation that does not have it.

Dominant language
JavaScript
Stars
470
Forks
53
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from replit/codemirror-vim

All issues in replit/codemirror-vim

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.