Skip to content

v0.3.0

Latest

Choose a tag to compare

@amalucelli amalucelli released this 20 Nov 15:48
v0.3.0
619f96e

Added

  • Review comments (experimental). Select lines and press c to start a thread under them, or C for the whole file. Threads take replies, resolves and suggestions, render Markdown, fold, and their text can be selected and copied. i opens a Comments panel beside the file tree, and a right-click menu runs the same actions. Comments are kept per branch in a file under the repository's git directory and follow their lines as the code moves. See docs/comments.md.
  • dffy comments lists and filters comments as text, Markdown or JSON, and dffy comments apply lets scripts and agents add their own, shown with their author. --show-comments adds them to printed output and --json, and the MCP server gained list_comments.
  • Code host reviews through review plugins (experimental). With dffy-review-github, dffy pr 123 opens a GitHub pull request with its threads and a Conversation page. Plain dffy on a branch with an open PR attaches its comments to your range, and p brings in new pushes and comments. Your drafts post as a review, each comment once, even after a retry or a crash. Needs gh, logged in. See docs/plugins.md.
  • A control API for a running viewer: dffy ctl and the MCP tools open_in_viewer, focus_thread and viewer_selection, limited to your own user. See docs/control.md.
  • Staging and discarding lines from the viewer. A discard refuses to overwrite edits the view hasn't shown yet.
  • Resolving conflicts in the viewer: keep the current, incoming or both sides, or take the base, then write the file.
  • A sticky scope line that names the function or block the top of the screen is in, for 10 languages.
  • paging = always (or --paging=always) opens the viewer as git's pager even for a diff that fits one screen, without waiting to see whether it fits.

Changed

  • Conflict keys moved to their own conflict: table, active only in a conflicted file: n/N next and previous conflict, o current, t incoming, b both, a base, w write. In the main table, O now opens a review, R shows changes since your last review and E writes a comment in $EDITOR. Rebinds of conflict actions in your config need the conflict: prefix.
  • Thread actions (reply, edit, delete, resolve, adopt, open on the host) are a remappable thread: table.
  • The command panel was re-lettered so a letter never means two things. w watch, W wrap, I whitespace, B status bar, f/F next and previous file; search moved to /. docs/keys.md lists them all.
  • --json annotations carry a source.

Performance

  • Drawing, scrolling, search and the file tree are 1–5% faster than 0.2.1 on the reference Linux machine.
  • m between comment threads is 25–36% faster, and comments add nothing to the first frame.
  • The pager's peak memory is about 0.6MB higher, from the bigger binary, at the same speed.