Delta

Syntax-highlighting pager for git, diff, and grep output. Beautiful diffs in terminal.

Open SourceTerminale
Windows, macOS, Linux⭐⭐⭐Free (MIT License)

Descrizione

Delta is a syntax-highlighting pager for git, diff, and grep output. Written in Rust, it provides beautiful, colorized diff output in your terminal with features like side-by-side view, line numbers, and hyperlinks. Delta is designed to be a drop-in replacement for git's default pager.

Caratteristiche principali

  • Syntax highlighting for 50+ languages
  • Side-by-side diff view
  • Line-by-line and character-level diffs
  • Git integration with automatic detection
  • Hyperlinks to files and commits
  • Customizable colors and styles
  • File header decorations
  • Supports merge conflicts display
  • Hunk annotations and custom decorators

Installazione

# macOS (Homebrew)
brew install git-delta

# Linux (Ubuntu/Debian)
sudo apt install git-delta

# Or download binary from GitHub
# https://github.com/dandavison/delta/releases

# Configure Git
git config --global core.pager delta

Utilizzo

# Delta automatically works as git pager after configuration
git diff
git log -p
git show

# Side-by-side view
git diff --side-by-side

# Configure in ~/.gitconfig
[core]
    pager = delta
[interactive]
    diffFilter = delta --color-only

Pro

  • +Beautiful, modern output
  • +Very fast (written in Rust)
  • +Excellent git integration
  • +Highly customizable
  • +Active development

Contro

  • -Terminal only, no GUI
  • -Many configuration options can be overwhelming
  • -Requires manual git configuration
  • -No merge capabilities