| Crates.io | diff-tui |
| lib.rs | diff-tui |
| version | 0.1.1 |
| created_at | 2026-01-17 07:05:31.560285+00 |
| updated_at | 2026-01-17 13:44:06.281986+00 |
| description | A terminal-based Git diff viewer with fuzzy search |
| homepage | https://github.com/chouxcreams/diff-tui |
| repository | https://github.com/chouxcreams/diff-tui |
| max_upload_size | |
| id | 2050076 |
| size | 81,224 |
A terminal-based Git diff viewer. Provides an intuitive interface for browsing changed files and viewing diffs.
/ to filter files by nameFrom crates.io:
cargo install diff-tui
From source:
git clone https://github.com/chouxcreams/diff-tui
cd diff-tui
cargo install --path .
Create ~/.config/diff-tui/config.toml to customize settings:
[diff]
# Diff tool to use (default: "auto")
# Options: "auto", "delta", "diff-so-fancy", "difftastic", "colordiff", "git"
# Or specify any custom command name
tool = "delta"
# Additional arguments to pass to the diff tool (optional)
args = ["--side-by-side"]
[editor]
# Editor command (default: $EDITOR environment variable, then "vi")
command = "nvim"
# Additional arguments to pass to the editor (optional)
args = []
| Value | Behavior |
|---|---|
"auto" |
Try delta first, fall back to git diff (default) |
"delta" |
Use delta (falls back to git diff if not installed) |
"git" |
Use git diff directly |
| Other | Use specified command (falls back to git diff if not found) |
Run inside a Git repository:
diff-tui
| Key | Action |
|---|---|
j / ↓ |
Move to next file |
k / ↑ |
Move to previous file |
Enter |
View diff of selected file |
e |
Open file in editor |
/ |
Start search mode |
q |
Quit |
| Key | Action |
|---|---|
| Type | Add to search query |
Backspace |
Delete character |
Enter |
View diff of selected file |
Esc |
Cancel search |
↑ / ↓ |
Navigate search results |
| Key | Action |
|---|---|
j / ↓ |
Scroll down 1 line |
k / ↑ |
Scroll up 1 line |
d / PageDown |
Scroll down 20 lines |
u / PageUp |
Scroll up 20 lines |
g / Home |
Go to top |
G / End |
Go to bottom |
e |
Open file in editor |
Esc |
Return to file selection |
q |
Quit |
MIT