diffnav

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 21 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL