Skip to content

Diff, blame & history

Three closely-related views, drill into history with the same shortcut chain once you’ve focused a file.

Enter on a file row inside a commit drilldown (or the Uncommitted view) opens the Diff view. Layout is split between:

  • Left, file path + hunk navigation.
  • Right, the diff itself, syntax-highlighted by syntect (the theme follows core.option.syntax_theme).

core.option.diff_mode = "enhanced" (default) renders side-by-side. Set to "unified" for the traditional git diff layout.

Side-by-side diff, OLD left (red deletions) / NEW right (green additions), syntax-highlighted via syntect

PressAction
↑↓ / j / kScroll line by line.
← / →Move focus between hunks / buttons.
PageUp/DownPage scroll.
+ / -Cycle to the next / previous file in the commit.
rRefresh.

f toggles search inside the current diff. n / Shift+N jump between matches. The current match is highlighted in list_match_bg.

  • b, open Blame on the focused file at this commit.
  • Shift+H, open File History (git log --follow).
  • c, copy the file path.
  • Shift+C, copy the commit hash.