xonecas.io

diff-scope

A small terminal git diff viewer built with `cel-tui` and Bun.

post-AI small tui skills bun

5 commits · 2026-04-16 to 2026-04-16 · 12 files

xonecasfeat: remove now redundant Divider9bc410d2026-04-16
▸ .agents/ 2026-04-16
▸ src/ 2026-04-16
· .gitignore 2026-04-16
· AGENTS.md 2026-04-16
· bun.lock 2026-04-16
· index.ts 2026-04-16
· package.json 2026-04-16
· preview.png 2026-04-16
· README.md 2026-04-16
· tsconfig.json 2026-04-16

README.md

diff-scope

A small terminal git diff viewer built with cel-tui and Bun.

Preview

diff-scope preview

Current features

  • scrollable diff view
  • staged and unstaged diff snapshots
  • diff highlighting
  • wrapped long lines
  • status bar with current directory, branch, git status summary, and refresh mode
  • pending-change detection every 5 seconds
  • manual refresh with r
  • auto-refresh toggle with Ctrl+R
  • adjustable auto-refresh interval with PageUp / PageDown
  • help/about modal with ?

Install locally

Requires Bun and git.

From this repo:

bun install
bun link

Then run it inside any git repo:

cd /path/to/git/repo
diff-scope

Run

bun install
bun run start

Development

bun run dev
bun run typecheck

Current keybinds

  • r — refresh snapshot
  • Ctrl+R — toggle auto-refresh
  • PageUp — slow auto-refresh by 5 seconds
  • PageDown — speed auto-refresh up by 5 seconds
  • ? — open or close help
  • Esc — close help
  • Ctrl+Q / Ctrl+C — quit