#diff #detect #highlighting #numbers #alignment #txt #tooling #terminal #diffside #side-by-side

app diffside

A CLI tool for side-by-side file diffs with themed highlighting

1 unstable release

new 0.1.0 May 6, 2025

#1362 in Text processing

MIT license

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