on master help sign in
Add REGISTERS, update MACROS accordingly
c7f9cafn0s4
runtime/tutor.txt+67−23
@@ -813,36 +813,36 @@ lines.
813
813
814
814
815=================================================================
815=================================================================
816−= 8.1 CHANGING CASE =
816+= 8.1 REGISTERS =
817=================================================================
817=================================================================
818
818
819− Type ~ to switch the case of all selected letters.
819+ Registers are containers identified by a character for storing
820− Type ` to set all selected letters to lowercase.
820+ things like yanked text. Registers are also used to store the
821− Type Alt-` to set all selected letters to uppercase.
821+ most recent search term as well as macros, which you'll learn
822+ about in the next section.
822
823
824+ Type "<ch> to select register <ch>.
825+
823− 1. Move the cursor to the first line below marked -->.
826+ 1. Move the cursor to the line below marked -->.
824− 2. Select each wrongly capitalised or lowercase letter
827+ 2. Type w to select "watermelons" and yank with y.
825− and type ~ over them.
828+ 3. Type w to select "bananas"
826− 3. Move to the second line marked -->.
829+ 4. Change to register b with "b and yank with y.
827− 4. Type x to select the line.
830+ 5. Select "mangoes" and type R to replace it with "watermelons"
828− 5. Type ` to change the line to lowercase.
831+ 6. Select "pineapples" then type "b R to replace with "bananas".
829− 6. Move to the third line marked -->.
832+
830− 7. Type x to select the line.
833+ --> I like watermelons and bananas because my favorite fruits
831− 8. Type Alt-` to change the line to uppercase.
834+ are mangoes and pineapples.
832
835
833− --> thIs sENtencE hAs MIS-cApitalIsed leTTerS.
834− --> this SENTENCE SHOULD all be in LOWERCASE.
835− --> THIS sentence should ALL BE IN uppercase!
836
836
837=================================================================
837=================================================================
838= 8.2 MACROS =
838= 8.2 MACROS =
839=================================================================
839=================================================================
840
840
841 Macros are a way to record a set of actions you want to repeat.
841 Macros are a way to record a set of actions you want to repeat.
842−
842+ You can also record macros to a specific register (default @).
843− Type Q to start recording a macro, you should see a popup at
843+ Type Q to start recording a macro - you should see a popup at
844 the bottom of your screen. Type Q again to stop recording.
844 the bottom of your screen. Type Q again to stop recording.
845− Type q to repeat your recorded macro.
845+ Type q to repeat the macro from register @ (the default).
846
846
847 1. Move the cursor to the first line below marked -->.
847 1. Move the cursor to the first line below marked -->.
848 Ensure your cursor is on the > of the arrow.
848 Ensure your cursor is on the > of the arrow.
@@ -858,14 +858,58 @@ lines.
858
858
859=================================================================
859=================================================================
860= CHAPTER 8 RECAP =
860= CHAPTER 8 RECAP =
861+=================================================================
862+
863+ * Type " to select a different register.
864+
865+ * Type Q to start and stop recording a macro to a register,
866+ the default being @.
867+
868+ * Type q to replay a macro from @ or the selected register.
869+
870+
871+
872+
873+
874+
875+
876+
877+
878+
879+
880+
881+=================================================================
882+= 9.1 CHANGING CASE =
883+=================================================================
884+
885+ Type ~ to switch the case of all selected letters.
886+ Type ` to set all selected letters to lowercase.
887+ Type Alt-` to set all selected letters to uppercase.
888+
889+ 1. Move the cursor to the first line below marked -->.
890+ 2. Select each wrongly capitalised or lowercase letter
891+ and type ~ over them.
892+ 3. Move to the second line marked -->.
893+ 4. Type x to select the line.
894+ 5. Type ` to change the line to lowercase.
895+ 6. Move to the third line marked -->.
896+ 7. Type x to select the line.
897+ 8. Type Alt-` to change the line to uppercase.
898+
899+ --> thIs sENtencE hAs MIS-cApitalIsed leTTerS.
900+ --> this SENTENCE SHOULD all be in LOWERCASE.
901+ --> THIS sentence should ALL BE IN uppercase!
902+
903+=================================================================
904+= CHAPTER 9 RECAP =
861=================================================================
905=================================================================
862
906
863 * Type ~ to alternate case of selected letters.
907 * Type ~ to alternate case of selected letters.
864 * Use ` and alt-` to set the case of selected layers to
908 * Use ` and alt-` to set the case of selected layers to
865 upper and lower respectively.
909 upper and lower respectively.
866
910
867− * Type Q to record and stop recording a macro.
911+
868− * Type q to repeat the recorded macro.
912+
869
913
870
914
871
915
@@ -879,7 +923,7 @@ lines.
879
923
880
924
881=================================================================
925=================================================================
882−= 9.1 USING THE JUMPLIST =
926+= 10.1 USING THE JUMPLIST =
883=================================================================
927=================================================================
884
928
885 Helix can keep track of "jumps" which are big movements, like
929 Helix can keep track of "jumps" which are big movements, like
@@ -901,7 +945,7 @@ lines.
901
945
902
946
903=================================================================
947=================================================================
904−= CHAPTER 9 RECAP =
948+= CHAPTER 10 RECAP =
905=================================================================
949=================================================================
906
950
907 * Type C-s to save position to the jumplist.
951 * Type C-s to save position to the jumplist.