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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user