jesseduffield / jesseduffield/lazygit
UX / Feature suggestion - stay in hunk viewing mode after discard
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
One thing I've noticed trying out lazygit, it seemed a bit unintuitive when you do `commits -> select some commit with enter -> select some file with enter -> `d` to discard some hunk` it exits hunk editing mode and you always need to reenter it, it feels like exiting hunk mode should be explicit for user in that case.
See the demo below - note that after each discard user needs to reenter hunk viewing mode.
https://github.com/user-attachments/assets/46b4b126-7b15-40eb-864e-2be30d9be6c7
Contributor guide
Research direction
Start by reproducing the commits → file → hunk discard flow shown in the issue and trace how lazygit handles the discard action. The change is done when discarding a hunk keeps the user in hunk viewing mode, while leaving that mode remains an explicit action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100