1 unstable release
new 0.1.0 | May 6, 2025 |
---|
#1362 in Text processing
15KB
245 lines
diffside
๐ง A side-by-side CLI diff tool with word-level coloring, Dracula theme, and scrollable paging.
diffside is a command-line utility written in Rust that compares two text files and shows their differences in a clean, side-by-side format. It highlights word-level changes with background colors and includes paging support for viewing large files easily.
โจ Features
- ๐ฅ๐ฉ Word-level diff highlighting
- ๐ Side-by-side comparison with aligned line numbers
- ๐จ Built-in Dracula theme (no config needed)
- ๐ Automatic line wrapping and alignment
- ๐ฝ Paging support using
less -R
- โ "No differences found" detection
๐ Installation
Once published to crates.io:
cargo install diffside
๐งช Example
Compare two files:
diffside file1.txt file2.txt
Disable pager (for piping or scripting):
diffside file1.txt file2.txt --no-pager
โ No Diffs Case
When the files are identical, you'll see:
โ
No differences found between 'file1.txt' and 'file2.txt'.
๐ License
MIT ยฉ 2025 Kayne Amornvivat
Dependencies
~5โ14MB
~187K SLoC