diffnav
Git diff pager with file tree UI
TLDR
SYNOPSIS
diffnav [options] [commitrange_]
DESCRIPTION
diffnav is a git diff pager that provides an interactive file tree interface for navigating code changes. It combines the functionality of traditional diff viewers with a visual file explorer, making it easier to browse large changesets across multiple files.
The tool integrates with git to show file-by-file differences with syntax highlighting, collapsible sections, and keyboard navigation. It's particularly useful when reviewing pull requests or browsing commits that touch many files.
PARAMETERS
-d, --diff MODE
Diff mode: unified, context, or side-by-side-w, --width N
Set display width for side-by-side view--no-color
Disable colored output-h, --help
Display help and exit-v, --version
Display version and exit
KEYBINDINGS
↑/↓
Navigate through files in the treeEnter
View diff for selected fileSpace
Toggle file expansion/collapsen/p
Jump to next/previous file with changes/
Search within diffsq
Quit
CAVEATS
Requires git to be installed and accessible in PATH. Large repositories may experience slower loading times. Syntax highlighting depends on file extension detection. Some terminal emulators may have limited color support.
HISTORY
diffnav was developed to improve the git diff browsing experience by adding a visual file tree component to the traditional pager interface, making it easier to understand the scope of changes across multiple files.
SEE ALSO
git(1), diff(1), less(1), difftastic(1)

