]>
description | Periodically execute a command and highlight changes |
last change | Tue, 14 Jan 2025 17:09:06 +0000 (17:09 +0000) |
URL | http://mivirldevekbr6wvubebfbxbzhxnqdv2z6ehnojgv63qsgnukfiix4yd.onion/git/watchdiff.git |
https://mivirl.dev/git/watchdiff.git |
Alternative to watch with visual indication of what was added or removed every time a command was run.
Executes a program periodically and displays the output with colors indicating changes as a diff. Additions are marked in green, and deletions in red. Colors will fade after consecutive executions with the same output.
Similar to watch -d
, but also displays the output that was overwritten.
make
make install
Usage:
watchdiff [options] -- <command>
Options:
-n <seconds> Time between updates in seconds
-t Turn off header with interval and command at top
-h Show this help text
Uses termbox2 and diff-match-patch-c
2025-01-14 | mivirl | update README.md master | commit | commitdiff | tree | snapshot |
2025-01-14 | mivirl | Add demo GIF | commit | commitdiff | tree | snapshot |
2025-01-14 | mivirl | Apply patch from udif to diff-match-patch-c | commit | commitdiff | tree | snapshot |
2025-01-14 | mivirl | Combine print statements | commit | commitdiff | tree | snapshot |
2024-06-11 | mivirl | Initial commit | commit | commitdiff | tree | snapshot |
5 months ago | master | shortlog | log | tree |