differ_cli-1.0.0 is not a library.
differ
A TUI diff viewer with persistent annotations. Drop-in replacement for git diff with the ability to annotate code changes.
Features
- Git-compatible CLI - accepts same arguments as
git diff - Interactive TUI with vim-style navigation
- Persistent annotations stored in SQLite
- Full file expansion - view entire file with changes highlighted
- Side-by-side view (optional)
- Export annotations to Markdown/JSON for AI context
Installation
Requires Rust. Then:
This builds the binary, installs it to ~/.local/bin, and adds it to your PATH.
Git Setup
Add to your ~/.gitconfig:
Then use git d instead of git diff.
Usage
Annotations
# In TUI: press 'a' to add annotation at current line
# CLI commands
Keybindings
Navigation
| Key | Action |
|---|---|
j/k |
Move up/down |
n/N |
Next/prev file (or chunk in expanded mode) |
]/[ |
Next/prev change |
Ctrl+d/u |
Half page down/up |
g/G |
Go to top/bottom |
View
| Key | Action |
|---|---|
x |
Expand/collapse file (full file view) |
s |
Toggle side-by-side view |
c |
Toggle annotation visibility |
Annotations
| Key | Action |
|---|---|
a |
Add annotation |
e |
Edit annotation |
d |
Delete annotation |
t |
Toggle type (comment/todo) |
Other
| Key | Action |
|---|---|
? |
Help |
q |
Quit |
Config
~/.config/differ/config.toml:
= false
= 3
= true
License
MIT