Skip to content

Keyboard and mouse

Press ? at any time for Hunk's in-app shortcut reference. Menus and primary review actions are also mouse-selectable.

KeysAction
/ , k / jScroll one row
Space / f, bPage down / up
Shift+SpacePage up
d / uHalf page down / up
[ / ]Previous / next hunk
, / .Previous / next file
{ / }Previous / next annotated hunk
Home / End, g / GStart / end of review
/ Scroll unwrapped code; hold Shift for faster movement

Hunk navigation stays review-wide: hunk and file shortcuts move through the same multi-file stream shown in the main pane.

KeyAction
0 / 1 / 2Auto / split / stack layout
sToggle sidebar
tChoose a theme
lToggle line numbers
wToggle line wrapping
mToggle hunk metadata
MToggle menu bar
zToggle unchanged context for the selected hunk
aToggle agent notes
eOpen the selected file in $EDITOR
/Focus file filter
TabMove focus between the file list and file filter
rReload a reloadable input
F10Open menus
qQuit

Hunk may offer to save view changes on quit. Saving writes personal preferences globally unless the repository already has a .hunk/config.toml.

Press c on the selected hunk or use a visible add-note affordance with the mouse. While editing, app shortcuts are suspended so normal text entry works. Save with the note editor's displayed action or cancel with Escape.

  • Click a sidebar file to jump to it in the review stream.
  • Click menus and dialog actions instead of their key equivalents.
  • Use the wheel or scrollbar to move through the review; hold Shift while scrolling to move horizontally through unwrapped code.
  • Select diff text for copy where the terminal supports it.

Terminal mouse protocols vary; see terminal compatibility if clicks or selection do not behave as expected.