hn.today

Show HN: Diffle, a keyboard-centric diff viewer with LSP support

github.com5 points1 comments
Screenshot of Show HN: Diffle, a keyboard-centric diff viewer with LSP support

Diffle is a keyboard-first, browser-hosted diff viewer focused on fast, granular code review. It renders Git diffs (commits, ranges, PRs, worktree) and lets reviewers add comments on lines, blocks, whole files, or a focused commit; comments live under /diffle/ rather than changing the worktree, follow their text as code moves, and go stale when a change leaves the diff. Reviews can be exported into a pending GitHub review (diffle does not submit the review), with export limited to comparisons that match the PR's committed diff; a GitHub token or gh is required for integration. Generated files auto-collapse by linguist markers, threads can be resolved or copied out, and navigation is optimized for keys (j/k, J/K, /, c, C, V, R, v, gf, F, etc.) for quick movement, selection, and searching.

Language Server Protocol integration runs a server per language found on PATH to provide go-to-definition, type definition, references, symbols, and hover docs inside diffs, with the ability to list, override, or disable servers per run or persistently. Install options include conda-forge, npm, a standalone binary script, npx, or Nix; shell completions, reverse-proxy support, and dev/test workflows (npm scripts, e2e Docker screenshot tests) are provided. Config commands allow lsp overrides and repo-scoped shells for servers, and the tool bundles conveniences like copy-all-comments, file filtering, and commit-focused views for iterative review workflows.

Read on github.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.