Skip to content

Add progressive increment across multiple cursors to the tutor #10821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion runtime/tutor
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,29 @@ lines.


=================================================================
= 8.2 MACROS =
= 8.2 PROGRESSIVE INCREMENTING AND DECREMENTING =
=================================================================

The '"#' register can be used to progressively increment or
decrement numbers. Type '"#Ctrl-a' on multiple selections to
increment and type '"#Ctrl-x' to decrement.

1. Move the cursor to the first line marked '-->' below.
2. Move the cursor to the first '0'.
3. Press '4Shift-c' to select all '0's.
4. Press '"#' followed by 'Ctrl-a' to progressively increment the
the person id ('Ctrl-x' to decrement).

--> Person 1 with id xxxx-xxxx-0
--> Person 2 with id xxxx-xxxx-0
--> Person 3 with id xxxx-xxxx-0
--> Person 4 with id xxxx-xxxx-0
--> Person 5 with id xxxx-xxxx-0



=================================================================
= 8.3 MACROS =
=================================================================

Macros are a way to record a set of actions you want to repeat.
Expand Down