Navigate Without Getting Lost
A review is easier when movement has levels: scan lines, jump between hunks, jump between files, search for a term, then change focus only when needed.
The starter set
line scan j / k
page scan Ctrl-d / Ctrl-u
file jump { / }
hunk jump [ / ]
search / then n / N
panel focus Tab / Shift-Tab
help ?
Retrieval check
You are done with the current hunk and want the next changed hunk, not the next file. Which key do you press?
Correct. ] jumps to the next hunk.
Not quite. ] jumps to the next hunk; } jumps to the next file.
Practice
- Open a review target.
- Use
]three times, then[once. - Use
}once, then{once. - Search for a symbol with
/, then step through matches withn.