jesseduffield / jesseduffield/lazygit

'Keep file' shortcut 'k' conflicts with Vim navigation in merge conflict menu

Open Beginner friendly
#5,716 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

When resolving non-textual merge conflicts (e.g. file modified on one side, deleted on the other), the "Keep file" option has shortcut key 'k'. This conflicts with vim-style navigation where 'k' moves up in the menu, leading to accidental selection when users just want to navigate upward.

screenshot-20260313-124124

Possible solution, PR #5366 : Change the shortcut to 'r' (for "retain") to avoid this conflict.

Contributor guide

Open the contributing guide

Research direction

Inspect the merge conflict menu implementation and its tests, focusing on the "Keep file" action and its current 'k' shortcut. Review the possible solution in PR #5366, then change the shortcut to 'r' and verify that Vim-style upward navigation with 'k' no longer selects the action.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.