split-pane terminal diff viewer. syntax-highlighted, scrollable, pipe-friendly.
dv original.file modified.file
cat file.file | dv old.file -
| key | action |
|---|---|
| j / ↓ | down |
| k / ↑ | up |
| ctrl+d / pgdn | half page down |
| ctrl+u / pgup | half page up |
| g | top |
| G | bottom |
| q | quit |
go install github.com/hnpf/DV/cmd/dv@latest
another way is to simply clone and go build ./cmd/dv.
if any of these aren't working, then download the current release in this repo.
- bubbletea — TUI framework
- lipgloss — styling
- sergi/go-diff — diff engine
- chroma — syntax highlighting (catppuccin-mocha)
licensed under GPL-3.0.