tutor: Add a content cycling section (#5161)

This commit is contained in:
Gioele De Vitti 2022-12-23 02:12:49 +00:00 committed by GitHub
parent 7905086b55
commit 7a1fa0c74f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -985,11 +985,33 @@ lines.
--> How much would would a wouldchuck chuck --> How much would would a wouldchuck chuck
--> if a wouldchuck could chuck would? --> if a wouldchuck could chuck would?
Note: Additionally, Alt-( and Alt-) cycle the *contents* of the
selections as well.
================================================================= =================================================================
= 10.2 CHANGING CASE = = 10.2 CYCLING THE CONTENT OF SELECTIONS =
=================================================================
Type Alt-) and Alt-( to cycle the content of the selections
forward and backward respectively.
1. Move the cursor to the line marked '-->' below.
2. Select both lines with xx or 2x.
3. Type s to select, type "through|water|know" and enter.
4. Use Alt-( and Alt-) to cycle the content of the selections.
--> Jumping through the water,
--> daring to know.
=================================================================
= 10.3 CHANGING CASE =
================================================================= =================================================================
Type ~ to switch the case of all selected letters. Type ~ to switch the case of all selected letters.
@ -1011,7 +1033,7 @@ lines.
--> THIS sentence should ALL BE IN uppercase! --> THIS sentence should ALL BE IN uppercase!
================================================================= =================================================================
= 10.3 SPLITTING SELECTIONS = = 10.4 SPLITTING SELECTIONS =
================================================================= =================================================================
Type S to split each selection on a regex pattern. Type S to split each selection on a regex pattern.
@ -1039,6 +1061,7 @@ letters! that is not good grammar. you can fix this.
* Use ) and ( to cycle the primary selection back and forward * Use ) and ( to cycle the primary selection back and forward
through selections respectively. through selections respectively.
* Type Alt-, to remove the primary selection. * Type Alt-, to remove the primary selection.
* Type Alt-) and Alt-( to cycle the content of the selections.
* Type ~ to alternate case of selected letters. * Type ~ to alternate case of selected letters.
* Use ` and Alt-` to set the case of selected letters to * Use ` and Alt-` to set the case of selected letters to
@ -1053,7 +1076,6 @@ letters! that is not good grammar. you can fix this.
================================================================= =================================================================
= = = =
================================================================= =================================================================