diffnav is an interactive Git diff pager written in Go that simplifies reviewing source code modifications directly within terminal environments. Built around delta, it combines formatted code differences with a hierarchical file tree inspired by GitHub's review interface. Users can navigate modified files and switch between unified and side-by-side comparison layouts. Color-coded file statuses and line change statistics provide additional context during code reviews. Its watch mode automatically refreshes displayed differences by periodically executing configurable commands. YAML configuration files enable customization of themes, icons, panel dimensions, and interface elements. The utility can process GitHub pull request differences or operate as the default Git diff pager.
Features
- Interactive Git difference navigation through a hierarchical file tree interface
- Delta-powered source code comparison with unified and side-by-side display modes
- Color-coded file status indicators with added and removed line statistics
- Automatic difference refreshing through configurable watch commands and intervals
- Customizable interface themes, icons, sidebar dimensions, and delta rendering preferences
- Integration with Git commands, GitHub pull request differences, and shell pipelines