Syntax-highlighting pager for git, diff, and grep output with side-by-side view and word-level diff highlighting
Delta is a syntax-highlighting pager that enhances git diff, blame, and grep output with improved formatting and navigation. It replaces the default git pager to provide language syntax highlighting using the same themes as bat, word-level diff highlighting with Levenshtein edit inference, and side-by-side view with automatic line wrapping.
The tool integrates directly with git by configuring it as the core.pager and interactive.diffFilter in gitconfig. Delta supports navigation between diff sections using n/N keybindings, displays merge conflicts with improved formatting, and can syntax-highlight output from ripgrep, git grep, and standard grep. It includes hyperlink support for commit hashes and file paths, linking to hosting providers like GitHub, GitLab, SourceHut, and Codeberg.
Delta offers extensive customization with 20+ stylable elements using git's color/style language, automatic light/dark terminal background detection, and compatibility with traditional unified diff output. It includes emulation modes for diff-highlight and diff-so-fancy, and removes +/- markers by default to enable direct code copying from diffs. The tool is primarily used by developers who frequently review code diffs and want enhanced readability and navigation capabilities.


