Syntax-highlighting pager for git diff output with word-level highlighting, side-by-side view, and line numbers
Delta is a syntax-highlighting pager that replaces the default git diff output with enhanced visual formatting. It integrates with git by setting core.pager = delta in git configuration, intercepting diff output to add language syntax highlighting using the same themes as bat, word-level diff highlighting with Levenshtein edit inference, and configurable display options.
The tool supports side-by-side diff viewing with automatic line wrapping, line numbering, and navigation between files using n and N keybindings. It enhances git blame output with syntax highlighting and can format commit hashes as hyperlinks to GitHub, GitLab, SourceHut, or Codeberg. Delta also processes grep output from ripgrep, git grep, and standard grep with syntax highlighting.
Delta handles traditional unified diff output beyond git and includes automatic light/dark terminal background detection. It supports Git's --color-moved feature and offers emulation modes for diff-highlight and diff-so-fancy. The tool provides extensive customization options with style strings for over 20 elements using git's color/style language, along with configurable box and line decorations for commit, file, and hunk headers.
# via Package Manager
Package called 'git-delta' in most package managers


