The terminal view
The terminal view lets you jump to the next difference while Rift is still working on the rest.
rift -i a.sql b.sql
rift tui a.sql b.sql does the same. The view is usable before the diff is complete. A hunk Rift is still refining shows as one pending row and fills in by itself. Approximate hunks are yellow and marked with ~, and the status line gives the reason when it fits.
Keys
| Key | What it does |
|---|---|
n, p | Jump to the next and previous difference. |
space, b | Page down and up. |
g, : | Go to a line of the first file. |
m | Jump from the first moved block on screen to its other end. |
q | Quit. |
Limits
The view needs a terminal on standard input and standard output. When either is not a terminal, rift -i exits with status 2 before it reads the files. A build without the terminal interface (cargo install --no-default-features) also exits with status 2 on -i.
For git, use git difftool to open this view from a repository: see git integration.