Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Lazygit 0.66.0: Interaktive Auswahl ersetzt Staging-Panel
In Lazygit v0.66.0 ersetzt eine interaktive Auswahl direkt in der Hauptansicht das separate Staging-Panel, sodass Hunks und Zeilen dort per Leertaste gestaged, mit d verworfen, mit e im Editor geöffnet und per <ctrl-g> nach Datei angesteuert werden können.
This is by far the biggest release since I took over maintainership from Jesse, and some of the changes deserve a bit more explanation than usual.
Staging hunks is now done directly from the main view.
There used to be a separate staging panel that you had to enter if you wanted to stage individual diff hunks; it was limited to one file at a time, and showed the raw git diff rather than the configured diff renderer. This is gone; the main view now has a selection when you focus it, and you can act on the selected hunk or line directly there:
- press space to stage a hunk or range of lines
- navigate to the next/previous hunk with
<right>/<left>, or the next/previous file withn/N - press
eto jump to the editor on the selected line - press
dto discard a hunk.
Many other enhancements were added to this new interactive diff view:
- alt-click a line to jump to that line in the diff view (this works even when a popup panel is showing above it, e.g. the commit message editor)
- press
<ctrl-g>to see a menu with all the files in the diff, to quickly jump to one of them - the files in the diffstat below the commit message are clickable hyperlinks that take you to the clicked file in the diff, like the
<ctrl-g>menu does …