jesseduffield.lazygit/pkg/commands/patch
Stefan Haller a32ed507d3 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).
2026-08-08 12:58:58 +02:00
..
format.go Export PatchLine.isChange 2025-07-04 10:14:35 +02:00
hunk.go refactor patch code 2023-03-19 16:30:39 +11:00
parse.go refactor patch code 2023-03-19 16:30:39 +11:00
patch.go Press enter in main view of files/commitFiles to enter staging/patch-building 2026-08-08 12:58:58 +02:00
patch_builder.go Guard the patch builder against concurrent access 2026-07-17 12:35:54 +02:00
patch_line.go Fix selection after staging an added line 2026-03-19 16:57:53 +01:00
patch_test.go Show renamed files in the custom patch builder 2026-07-04 13:05:09 +02:00
transform.go Show renamed files in the custom patch builder 2026-07-04 13:05:09 +02:00