Skip to content

Keyboard reference ​

Keys are case-sensitive. Chords such as gg and gx are typed in sequence. Press ? in prtui for the reference available in your current mode.

KeyAction
j / k, ↓ / ↑Move down / up
Ctrl+d / Ctrl+uMove half a screen down / up
gg / GFirst / last line
h / l, ← / →Focus file tree / diff
TabSwitch panes
] / [Next / previous file
} / {Next / previous open thread
/Search the panel or diff; filter the file tree
n / NNext / previous match

Prefix motions with a count: 10j moves ten rows, 3] advances three files, and 42G jumps to line 42.

Read ​

KeyAction
EnterOpen or expand the item under the cursor
EReveal all hidden lines in the file
KOpen description, review history, and discussion
LSelect all changes, changes since review, or commits
gxOpen the current context in a browser
yCopy a permalink
?Open the key reference
EscLeave the thread, selection, search, or panel

In a panel, q closes it. In the commits panel, v starts a range selection; move to its end and press Enter to apply it.

Respond & finish ​

KeyAction
cComment, reply, or edit a draft at the cursor
CWrite a file comment
v / VSelect lines for a comment
eEdit the draft under the cursor
dDelete the draft under the cursor
RResolve or reopen a thread
xToggle viewed and open the next unviewed file
sOpen the review submission form
qLeave the review
Ctrl+cExit prtui

Composer & review form ​

KeyAction
EnterSave a comment; publish from the review form
Alt+Enter / Ctrl+jInsert a newline
Tab / Shift+TabNext / previous verdict in the review form
EscClose; confirm discard when prompted
Ctrl+a / Ctrl+eStart / end of the line
Ctrl+wDelete back to the previous blank
Ctrl+u / Ctrl+kDelete to the start / end of the line

Command line ​

Press :, type a command, then Enter. Esc cancels. ↑ / ↓ recall commands.

CommandAction
:treeShow or hide the file tree
:42 / :$Jump to line 42 / the last line
:nohClear the search or filter
:w / :submitOpen the review form
:h / :helpOpen the key reference
:o / :openOpen the current context in a browser
:y / :yankCopy a permalink
:q / :quitLeave the review

Named actions also work as commands, for example :next-file, :overview, :commits, and :expand-file.