Skip to content

A fast, lightweight, and colorful side-by-side diff CLI tool for the terminal with word-level highlighting.

License

Notifications You must be signed in to change notification settings

kaynenotkanye/diffside

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A fast, lightweight, and colorful side-by-side diff CLI tool for the terminal with word-level highlighting.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages