A small terminal git diff viewer built with cel-tui and Bun.
- 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
?
Requires Bun and git.
From this repo:
bun install
bun linkThen run it inside any git repo:
cd /path/to/git/repo
diff-scopebun install
bun run startbun run dev
bun run typecheckr— refresh snapshotCtrl+R— toggle auto-refreshPageUp— slow auto-refresh by 5 secondsPageDown— speed auto-refresh up by 5 seconds?— open or close helpEsc— close helpCtrl+Q/Ctrl+C— quit
