tui: /diff review with line notes, word diff, line numbers #151

Merged
hermes merged 3 commits from feat/diff-review into main 2026-10-14 20:13:42 +00:00
Collaborator

/diff review overlay reworked, modelled on revdiff.

  • Cursor moves line by line (j/k, PgUp/PgDn, g/G, ]/[ for hunks), scroll follows, scrollbar.
  • Old/new line-number gutter (L toggles).
  • Word-level highlight inside paired -/+ lines via similar inline changes (W toggles).
  • Collapsed view (v): final text only.
  • Line notes: c/Enter on a line, saved with Enter; s sends all notes to the agent as one user message path:line (added|removed|context) code: note. Review closes.
  • Per-file accept (a) / revert (r) unchanged.
  • Long lines cut with a » marker.

Tests: new unit test for numbering, word spans, notes message, collapse. tests/all.sh green, clippy clean.

`/diff` review overlay reworked, modelled on revdiff. - Cursor moves line by line (j/k, PgUp/PgDn, g/G, ]/[ for hunks), scroll follows, scrollbar. - Old/new line-number gutter (L toggles). - Word-level highlight inside paired -/+ lines via similar inline changes (W toggles). - Collapsed view (v): final text only. - Line notes: c/Enter on a line, saved with Enter; s sends all notes to the agent as one user message `path:line (added|removed|context) `code`: note`. Review closes. - Per-file accept (a) / revert (r) unchanged. - Long lines cut with a » marker. Tests: new unit test for numbering, word spans, notes message, collapse. `tests/all.sh` green, clippy clean.
hermes added 1 commit 2026-10-14 20:02:41 +00:00
hermes added 1 commit 2026-10-14 20:08:14 +00:00
hermes added 1 commit 2026-10-14 20:12:14 +00:00
hermes merged commit 8d4fa32fdf into main 2026-10-14 20:13:42 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#151