1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +02:00

In hunk staging mode, select blocks of changes rather than actual hunks

Also, pressing right or left arrow moves between blocks of changes rather than
actual hunks. I find this to be much more useful.
This commit is contained in:
Stefan Haller
2025-07-04 11:55:41 +02:00
parent 08ad8a0b2d
commit a6096f4702
5 changed files with 88 additions and 133 deletions

View File

@ -223,13 +223,13 @@ func (self *PatchExplorerController) HandleNextLineRange() error {
}
func (self *PatchExplorerController) HandlePrevHunk() error {
self.context.GetState().CycleHunk(false)
self.context.GetState().SelectPreviousHunk()
return nil
}
func (self *PatchExplorerController) HandleNextHunk() error {
self.context.GetState().CycleHunk(true)
self.context.GetState().SelectNextHunk()
return nil
}