Jujutsu / jj's built-in diff editor cheat sheet

A quick reference for the built-in TUI diff editor (scm-record) used by jj's interactive commit editing commands, jj split and jj squash -i

Navigation

Previous item
k
Next item
j
Previous same type
Page Up
Next same type
Page Down
Outer item with fold
h
Outer item only
Shift+←
Shift+h
Inner item and unfold
l

Mouse Controls

Select item
Click on item
Toggle selection
Click checkbox
Expand/collapse section
Click [+]/[-]
Access commands
Click menu items

Scrolling

Scroll up one line
Ctrl+↑
Ctrl+y
Scroll down one line
Ctrl+↓
Ctrl+e
Page up
Ctrl+Page Up
Ctrl+b
Page down
Ctrl+Page Down
Ctrl+f
Previous page
Ctrl+u
Next page
Ctrl+d

Selection

Toggle current
Space
Toggle and advance
Enter
Invert all
a
Invert all uniformly
A

View Controls

Expand/collapse section
f
Expand/collapse all
F
Edit commit message
e

General

Show help
?
Quit/cancel
q
Confirm changes
c
Force quit
Ctrl+c
Close dialog
Esc