A syntax-highlighting pager for git, diff, grep, rg --json, and blame output
open sourceMITself-hostablefree
delta is a pager that makes git diff, log -p, blame, and grep output readable: syntax highlighting with bat themes, word-level diff highlighting, side-by-side view with line wrapping, line numbers, navigation between files, and hyperlinks to commits on the hosting provider. It is enabled by setting it as git's pager.
Ways to install
Package managers
Problems it solves
- git diff in the terminal is hard to read without syntax colors
- see exactly which words changed in a line, not just the whole line
- side by side diffs in the terminal
- git blame output is ugly and hard to scan
- jump between files in a long git log -p
- copy code from a diff without the + and - markers
- make merge conflict output more readable
- GitHub-like diff display without leaving the terminal
Features
- syntax highlighting
- word-level diff
- side-by-side view
- line numbers
- n/N navigation
- blame and grep display
- hyperlinks
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what delta does.
- bat A cat(1) clone with wings.
- difftastic a structural diff that understands syntax
