About this project
Delta is a command-line tool that acts as a pager for git diffs, grep output, and blame output, adding syntax highlighting and numerous display enhancements to make reading diffs more efficient and enjoyable. It integrates directly with git by configuring core.pager to delta, and also works with diff, grep, rg, and git blame.
Key features include language syntax highlighting using the same themes as bat, word-level diff highlighting via a Levenshtein edit inference algorithm, side-by-side view with automatic line wrapping, line numbering, and keyboard navigation (n/N) between diff sections and files. Delta improves merge conflict display with zdiff3 conflict style, enhances git blame output with syntax highlighting and optional hyperlinks to hosting providers (GitHub, GitLab, SourceHut, Codeberg), and syntax-highlights grep output from rg, git grep, and grep.
The tool supports Git's --color-moved feature, allows copying code directly from diffs (removing +/- markers by default), and provides emulation modes for diff-highlight and diff-so-fancy. Commit hashes and file paths can be formatted as terminal hyperlinks. Over 20 stylable elements support custom foreground colors, background colors, and font attributes using git's color/style language. Delta automatically detects light or dark terminal backgrounds and handles both traditional unified diff output and git-specific output formats.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.