Renumber a list after inserting

A step was added to a numbered checklist, as a second item 2. Every item after it is now off by one and needs its number bumped — the same edit, four lines running.

Helix has a command that adds one to the number under the cursor (lesson 8), and it works on every cursor at once (lesson 11). So the job is to put a cursor on each wrong number and increment once — or, if you would rather not, to visit the numbers in turn and increment at each.

The goal: make the buffer match the target under the editor. The new item 2 keeps its number; only the four lines after it change.

One route, if you want it

Move to 2. Tag the commit and press x four times to extend the selection to the last line. s, then \d+ and Enter, leaves one cursor on each number. Ctrl-a adds one to all four; , collapses back to a single cursor.

Make the file match the target under the editor.

Any route counts — the buffer alone is judged.

Loading editor…

Target

Release checklist

1. Bump the version in Cargo.toml
2. Update the changelog
3. Tag the commit
4. Push the tag
5. Publish the crate
6. Announce the release