Hunk Lens
August 18, 2026 · View on GitHub
Keep the selected split-diff row visible at the bottom of Hunk, with the old version above the new version.

Prefer a still? See the screenshot.
Install
Hunk 0.19 or newer can install the extension directly from GitHub:
hunk extension install modem-dev/hunk-lens
New Hunk sessions load it automatically.
Use
Open a split review as usual:
hunk diff --mode split
The lens occupies three rows at the bottom of the review and follows Hunk's current-line marker. Use Extensions → Toggle current-line lens to hide or restore it.
The lens stays out of the layout when current-line paint is unavailable, including stacked layout, a disabled current-line marker, and alternate file presentations.
Manage
hunk extension update hunk-lens
hunk extension remove hunk-lens
Pin a release when you want updates to stay on a specific version:
hunk extension install modem-dev/hunk-lens@v0.1.0
Develop
Hunk serves React, OpenTUI, and hunkdiff/extension at runtime. This repository keeps them as development-only dependencies and ships TypeScript source directly—there is no build step.
bun install
bun run check
hunk diff --mode split --extension /path/to/hunk-lens
See Hunk's extension guide for the public API and trust model.
Contributing
See CONTRIBUTING.md. Report vulnerabilities through GitHub's private security advisory flow.