Git Clients

diffnav – Git diff pager with file tree navigation

diffnav is a terminal-based Git diff pager that combines delta’s syntax-highlighted output with an interactive file tree, providing a browsing experience similar to reviewing changes on GitHub.

The application is particularly useful when examining commits or pull requests involving numerous files. Instead of scrolling through a continuous stream of diff output, users can navigate directly to individual files and inspect their changes.

diffnav uses Bubble Tea for its terminal interface and delegates diff rendering to delta. It can work with ordinary Git diff output, including changes retrieved through the GitHub CLI, or act as Git’s default diff pager.

Its interface can be customised through configuration files, with options for controlling the file tree, display layout, colour themes and other aspects of navigation.

This is free and open source software.

Key Features

  • Interactive file tree for navigating Git diffs, with collapsible directories and configurable folder expansion depth.
  • Syntax-highlighted diff output powered by delta.
  • Switch between side-by-side and unified diff views.
  • Navigate directly between changed files using keyboard shortcuts.
  • Search for files within the diff using an interactive search panel.
  • Display the number of added and removed lines alongside filenames.
  • Watch mode automatically refreshes displayed changes by periodically executing a configurable Git command.
  • Adjust the width of the file tree and search panel.
  • Show or hide the file tree, header and keyboard shortcut footer.
  • Choose between several file icon styles, including file-type icons, Git status indicators, Unicode symbols and ASCII characters.
  • Customisable colour themes with an interactive theme picker.
  • Copy a selected file’s path to the clipboard.
  • Open the selected file in an external editor using the EDITOR environment variable.
  • Scroll through diff output using keyboard shortcuts, including half-page and single-line navigation.
  • Supports configurable delta rendering settings.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/dlvhdr/diffnav
Support:
Developer: Dolev Hadar
License: MIT License

diffnav
Click image for full size

diffnav is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

Git Tools for Diff Review and Repository History
difftasticStructural diff tool that compares files based on their syntax
git-filter-repoQuickly rewrite git repository history
onefetchDisplays information about a local Git repository
git-statsLocal git statistics including GitHub-like contributions calendars
diff-so-fancyAttractive diffs with diff-highlight and more
BFG Repo-CleanerClean unwanted data from Git repository history
git-deltaViewer for git and diff output
gitlogueCinematic Git commit replay tool
git-quick-statsAccess various statistics in a git repository
git-whoCommand-line Git analysis tool
git-standupRecall what you did on the last working day
git-of-theseusAnalyze how a Git repo grows over time
git-sizerCompute various size metrics for a git repository
diffnavGit diff pager based on delta but with a file tree, à la GitHub
critiqueTerminal UI for reviewing git diffs
git-big-pictureVisualization tool for Git repositories
herculesGain advanced insights from Git repository history
keifuTUI that visualizes Git commit graphs
git-fameGit repository collaborators sorted by contributions
needleHighlights GitHub PRs
mergirafGit merge driver
git-historyAnalyze Git history using SQLite
ecTerminal Git mergetool
diffrWord-by-word diff highlighting utility
git-scopeFast TUI dashboard to view the git status of all your repositories
mamediffManages unstaged and staged Git diffs
deadbranchKeep Git repositories tidy
GitTopLightweight desktop client for GitHub notifications
git-heatmapGenerates a customizable heatmap

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted