lazygit/pkg/gui/patch_exploring
Stefan Haller f0b49eba71 Press enter in main view of files/commitFiles to enter staging/patch-building
This was already possible, but only when a file was selected, and it woudln't
always land on the right line when a pager was used. Now it's also possible to
do this for directories, and it jumps to the right line.

At the moment this is a hack that relies on delta's hyperlinks, so it only works
on lines that have hyperlinks (added and context).

The implementation is very hacky for other reasons too (e.g. the addition of the
weirdly named ClickedViewRealLineIdx to OnFocusOpts).
2025-04-29 11:37:53 +02:00
..
focus.go Bump gocui and adapt lazygit code 2024-12-01 10:40:08 +01:00
focus_test.go Bump gocui and adapt lazygit code 2024-12-01 10:40:08 +01:00
state.go Press enter in main view of files/commitFiles to enter staging/patch-building 2025-04-29 11:37:53 +02:00