Skip to content

Use a separate key to undo a commit in the Vim keymap - #3064

Open
Boulea7 wants to merge 1 commit into
gitui-org:masterfrom
Boulea7:fix/vim-distinct-undo-key
Open

Boulea7 wants to merge 1 commit into
gitui-org:masterfrom
Boulea7:fix/vim-distinct-undo-key

Conversation

@Boulea7

@Boulea7 Boulea7 commented Nov 30, 2026

Copy link
Copy Markdown

Fixes #2704.

With the Vim keymap, pressing Shift+U in Unstaged Changes asked to reset the selected file. Pressing the same key in Staged Changes asked to undo the last commit. Both the Vim keymap and the example in KEY_CONFIG.md now bind undo commit to Alt+u.

I tested both examples with the macOS nightly. Shift+U still opens the file-reset confirmation in Unstaged Changes, and Alt+u opens the undo-commit confirmation in Staged Changes. The two key-list tests passed in a focused Cargo harness, and make fmt passed.

  • Added a regression assertion to the existing Vim example test
  • Ran the full make check suite
  • Tested the application
  • Updated the changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Official vim-style config: Shift+U conflict can cause accidental commit undo

1 participant