Documentation
¶
Overview ¶
Command diffview shows tuikit.DiffView: the same edit rendered unified and side-by-side, syntax-highlighted, with the changed words inside a modified line pair picked out.
go run ./examples/diffview
Press tab to switch layouts, +/- to change the context lines, and q to quit.
The thing to watch is the modified pairs. Line for line the two versions are almost identical — a renamed parameter, a widened signature, a changed format string — and a plain +/- diff leaves finding the difference to the reader. Narrow the terminal below 100 columns and the side-by-side layout falls back to unified on its own rather than truncating both halves.
Click to show internal directories.
Click to hide internal directories.