Skip to content

dlvhdr/diffnav

Repository files navigation

diffnav

A git diff pager based on delta but with a file tree, à la GitHub.

Caution

This is early in development, bugs are to be expected.

Feel free to open issues.

Demo

Installation

brew install git-delta # or any other package manager go install github.com/dlvhdr/diffnav
  • See here the full delta installations instructions.
  • TBD: support for package managers

Usage

Pipe into diffnav

  • git diff | diffnav
  • gh pr diff https://github.com/dlvhdr/gh-dash/pull/447 | diffnav

Set up as global git diff pager

git config --global pager.diff diffnav

Configuration

Keys

  • j/k - navigate the file tree
  • Ctrl-d/Ctrl-u - navigate the diff
  • e - toggle the file tree
  • q/Ctrl+c - quit

About

A git diff pager based on delta but with a file tree, à la GitHub.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published