Diff Viewer
The diff viewer shows a full-screen, colored diff. It opens from several places in jjui:
- Revisions: press
dto view the diff for the highlighted revision - Revision ranges: press
alt+dto compare two revision states - Details: press
dto view the diff for the selected file - Evolog: press
dto compare with the previous evolution entry - Oplog: press
dto view the diff for the selected operation
Press esc or q to close the diff and return to the previous view.
Diff range
Section titled “Diff range”From the Revisions view, press alt+d to start a range diff. The highlighted revision becomes the --from target, and the revision you choose next becomes the --to target. Press enter to open the result in the diff viewer.
While choosing the range:
| Key | Action |
|---|---|
j / k or arrows | Move through revisions |
enter | Show jj diff --from <from> --to <to> |
x | Swap the from and to targets |
t | Pick the --to target from bookmarks or tags |
f | Pick the --from target from bookmarks or tags |
esc | Cancel |
Navigation
Section titled “Navigation”| Key | Action |
|---|---|
j / k or arrows | Scroll up / down |
f / b or pgdown / pgup | Page down / up |
d / u or ctrl+d / ctrl+u | Half page down / up |
g | Jump to top |
G | Jump to bottom |
h / l or left / right | Scroll horizontally |
w | Toggle line wrapping |
ctrl+t | Choose one changed file, or (all files) to restore the full diff |
[ / ] | Show the previous / next changed file |
When line wrapping is enabled, long lines wrap within the viewport and horizontal scrolling is disabled.
The [ and ] shortcuts wrap at either end of the changed-file list. File selection and navigation are available for revision, Details, Diff Range, and Evolog diffs. Oplog diffs and static content opened through diff.show() do not retain the command arguments needed to load individual files.