talira

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

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 toolplan not known

Alternatives

The same job

These do what delta does.

  1. bat A cat(1) clone with wings.
  2. difftastic a structural diff that understands syntax

Compare delta with the top 3