ComponentsModern
Diff Viewer
Terminal-style unified diff viewer with line numbers, file tabs, and compact mode.
Demo
Features
- Unified diff format with +/- line markers
- Dual line number gutter (old and new)
- Color-coded additions (green) and deletions (red)
- Multiple file support with tab navigation
- File-level addition/deletion stats
- Collapsible unchanged regions
- Compact mode showing only changes
- Total change summary
Keybindings
f- Next file↑/↓- Scrolld- Toggle compact/full view