Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 27 Sep 10:13
· 295 commits to main since this release

Responding to initial user reports for v0.1.0.

Note the removal of "--web" and sending users to CodeReview instead.

Changed

  • Tabs display at tab stops, in the TUI and in headless output, instead of as one space.
  • The TUI uses the nearest 256 colors when the terminal does not advertise 24-bit color (macOS
    Terminal.app).
  • --minimal, --full, --whole-updates and --paint-reindent-moves apply in the TUI too, for
    that run only.
  • --review rejects a BEFORE/AFTER pair and --mode, and --headless rejects --mode, instead
    of ignoring one flag.
  • codediff git configure writes the resolved path of the running binary to diff.external.
  • change N/M counts changes in the order n walks them.
  • The render-options badge names what differs from --full.
  • Panel titles name languages as people write them (C++, Lua, Markdown). The JSON language
    values are unchanged.
  • Library: the diff::solve_* pass modules are crate-private, ASTDiff::is_valid has no after
    parameter, and NodeCache takes a lifetime (see Fixed). Breaking for library users, against
    the policy above; the library API was never meant to be relied on (see the crate docs).

Fixed

  • The TUI cursor lands on the right column on lines with non-ASCII text.
  • Ctrl-C quits from every screen, and Ctrl-E scrolls instead of opening $EDITOR.
  • The theme dialog opens on the syntax theme in use, and accepting a preset keeps the saved Custom
    palette.
  • Home and End move the cursor, not only the view.
  • $VISUAL/$EDITOR may carry arguments (code -w, emacsclient -t).
  • Omitting --whole-updates no longer switches a saved "Whole-pair updates" setting off.
  • The TUI exits when its input stream closes.
  • A block whose children were all deleted no longer takes its whole subtree with it: code matched
    inside it (a body moved from an if into an unless) is shown as matched, not deleted and
    inserted.
  • Library: NodeCache borrows the Code it was built from, so a cache that outlives its Code
    no longer compiles; before, safe code could read freed memory through it.

Removed

  • The browser front end (codediff-web) and the web Cargo feature. Breaking for anyone who
    installed with cargo install codediff --features web; for reviewing changes in a browser, use
    codereview. The GitHub Pages showcase is unaffected.