summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn0s42022-06-25 20:48:30 +0000
committerBlaž Hrastnik2022-07-26 01:22:28 +0000
commitd2b292660d01a8a340fce99f6c100f0602a5eae4 (patch)
treea5afa7024cbaecbf75f0401a16fa15257e7eec4e
parentc7f9caf6bd22557407da7ee81d7e68f02e9d94e3 (diff)
Add SEARCH FOR SELECTION
-rw-r--r--runtime/tutor.txt30
1 files changed, 26 insertions, 4 deletions
diff --git a/runtime/tutor.txt b/runtime/tutor.txt
index 85decf02..eb4846d8 100644
--- a/runtime/tutor.txt
+++ b/runtime/tutor.txt
@@ -879,7 +879,29 @@ lines.
=================================================================
-= 9.1 CHANGING CASE =
+= 9.1 SEARCHING FOR SELECTIONS =
+=================================================================
+
+ The most recent search with / is stored in register /.
+ n and N both refer to register /, this means we can set that
+ register without having to type in a search.
+
+ Type * to copy the primary selection into register /, setting
+ the search term to the selection.
+
+ 1. Move the cursor to the line below marked -->.
+ 2. Select "horse" with e and type *.
+ 3. Use n and N to jump between the instances of "horse".
+
+ --> A horse is a horse, of course, of course,
+ --> And no one can talk to a horse of course.
+
+ Note: * is like a shorthand for "/ y as all it really does is
+ copy the selection into the / register.
+
+
+=================================================================
+= 10.1 CHANGING CASE =
=================================================================
Type ~ to switch the case of all selected letters.
@@ -901,7 +923,7 @@ lines.
--> THIS sentence should ALL BE IN uppercase!
=================================================================
-= CHAPTER 9 RECAP =
+= CHAPTER 10 RECAP =
=================================================================
* Type ~ to alternate case of selected letters.
@@ -923,7 +945,7 @@ lines.
=================================================================
-= 10.1 USING THE JUMPLIST =
+= 11.1 USING THE JUMPLIST =
=================================================================
Helix can keep track of "jumps" which are big movements, like
@@ -945,7 +967,7 @@ lines.
=================================================================
-= CHAPTER 10 RECAP =
+= CHAPTER 11 RECAP =
=================================================================
* Type C-s to save position to the jumplist.