| Crates.io | lazydiff |
| lib.rs | lazydiff |
| version | 0.2.1 |
| created_at | 2025-11-14 18:25:02.394122+00 |
| updated_at | 2025-11-15 08:57:16.935903+00 |
| description | A terminal based diff viewer |
| homepage | |
| repository | https://github.com/wmeints/lazydiff |
| max_upload_size | |
| id | 1933256 |
| size | 107,048 |
A terminal-based diff viewer written in Rust that makes it easier to compare files. The tool not only shows you nicely formatted diffs, it allows you to copy the patch content to the clipboard or export it as a file.
You can install lazydiff using Cargo:
cargo install lazydiff
If you prefer to build from source:
git clone https://github.com/yourusername/lazydiff.git
cd lazydiff
cargo build --release
The binary will be available at target/release/lazydiff.
Launch lazydiff with two files to compare:
lazydiff file1.txt file2.txt
Or start lazydiff and interactively select files:
lazydiff
You can also specify just the source file:
lazydiff source.txt
In Diff View:
q - Quit the applications - Select a new source filet - Select a new target filec - Copy diff to clipboarde - Export diff as a patch file↑/↓ - Scroll through the diffIn File Browser:
↑/↓ - Navigate files and directoriesEnter - Select file or enter directoryEsc or q - Cancel selection (or exit if no files selected)For information on contributing to lazydiff, please see the Contributing Guide.
This project is licensed under the MIT License - see the LICENSE file for details.