Skip to content

Hunk 0.14

May 26, 2026 – June 1, 2026 · 2 releases

Hunk 0.14 adds mouse-drag selection with clipboard copy, inline expansion of collapsed unchanged context, and the Catppuccin Latte and Mocha themes.

Terminal window
npm i -g hunkdiff@0.14.1

Hunk 0.14 is no longer the current release. See the latest release or all install options.

June 1, 2026

  • Added local performance benchmarks for Hunk startup, loading, rendering, highlighting, navigation, memory, and optional competitor comparisons.
  • Fixed npm installs by pinning @pierre/diffs to the version Hunk is tested with instead of allowing the broken 1.2.6 release.

May 26, 2026

  • Added Catppuccin Latte and Mocha as built-in themes.
  • Added mouse-drag text selection in diff views that copies selected rows to the system clipboard via OSC 52. A View > Copy decorations toggle (or copy_decorations config) controls whether the clipboard includes diff rails, gutters, and file headers or only the changed code.
  • Added inline expansion for collapsed unchanged file content. Click an unchanged-context row (▾ N unchanged lines when expandable, otherwise the static ··· N unchanged lines ··· form) or press e while a hunk is selected to reveal surrounding and trailing file lines without leaving the review. The affordance is shown only for input modes that have reachable source content (hunk diff, show, stash show, file-pair diff and difftool, untracked files); raw hunk patch input still renders as before. Failed and in-flight loads surface a one-line status ("Loading…", "Could not load N unchanged lines") on the gap row. Expanded context rows use the same syntax highlighting as the surrounding diff.
  • Surfaced the agent author name in inline notes and the matching agent popover so multi-agent reviews are readable at a glance, with a fallback title when an annotation has no author.
  • Preserved Git log ANSI colors when hunk pager falls back to a plain-text terminal pager for non-diff output.
  • Capped inline context expansion source reads so huge files cannot freeze or exhaust memory when expanding unchanged lines.
  • Hardened plain-text pager startup so PAGER and HUNK_TEXT_PAGER shell metacharacters are passed as arguments instead of being evaluated implicitly.
  • Hardened terminal rendering against control-sequence injection from diffs, file paths, notes, expanded context, copied selections, and pager fallback output.
  • Fixed custom theme configuration so Catppuccin Latte and Mocha can be used as base themes.
  • Fixed inline note draft shortcuts so copy chords such as Ctrl-C and Ctrl-Shift-C no longer trigger note actions.
  • Fixed split diff alignment for wide CJK and emoji characters by measuring rendered text in terminal cells.
  • Fixed Ctrl-S saving for inline notes when tmux sends CSI-u keyboard input.
  • Stabilized hover backgrounds on wrapped diff rows so add-note affordances do not shift row layout.
  • Restricted session reloads so daemon commands cannot read files outside the initial Hunk session root.
  • Fixed static pager output so captured pager hosts honor configured custom themes.
  • Made hunk pager pass non-diff text through in captured pager and dumb-terminal contexts instead of spawning less.
  • Fixed the e editor shortcut when Hunk is launched from a repo subdirectory.
  • Fixed VCS auto-detection so a Git repository nested under a parent Jujutsu workspace still uses Git mode by default.

Newer: Hunk 0.15 · Older: Hunk 0.13 · All releases