This is the whole loop, once. Run stage in a repository that has uncommitted changes.
cd ~/code/my-projectstage1. Look at what changed
Section titled “1. Look at what changed”The files panel lists the changed files. Press 2 to focus it, then j and k
to move. The pane on the right shows the diff of the file under the cursor.
Press 0 to move into the diff, and j and k to scroll it. Press esc to go
back to the panel.
2. Understand a line
Section titled “2. Understand a line”Press w to put the cursor on a name, and g to open the file that defines it.
Press shift+tab to come back.
This needs a language server for the language. Read Navigating with LSP.
3. Say what is wrong
Section titled “3. Say what is wrong”- Press
vto start the line cursor. - Move to the line with
jork. - Press
c, type the comment, and pressctrl+s.
The comment stays in the diff, at the line. Read Review comments.
4. Accept the good part
Section titled “4. Accept the good part”Press esc to return to the files panel, then enter on a file to open the
staging editor.
| Keys | Action |
|---|---|
a, then space |
Stage the hunk under the cursor |
v, j, then space |
Stage the lines you select |
esc |
Leave the editor |
Read Staging.
5. Commit it
Section titled “5. Commit it”Press c, type a message, and press ctrl+s. The title of the editor counts
the files you are committing.
Read Commit and amend.
6. Send the rest back
Section titled “6. Send the rest back”Press # to open the review list, then s to send the comments to the agent
beside you.
With no agent terminal, press y to copy the review and paste it wherever the
agent runs. Read Terminal integrations.
What to read next
Section titled “What to read next”- Panels, modes and contexts explains why a key does one thing here and another thing there.
- Press
?in the app for every key of wherever you are standing.