Skip to content
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

Add tutor entry about 2-character label jump #11273

Merged
merged 3 commits into from
Jul 23, 2024
Merged
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
26 changes: 24 additions & 2 deletions runtime/tutor
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,28 @@ lines.



=================================================================
= 9.4 JUMP WITH TWO-CHARACTER LABELS =
=================================================================

Type gw to enable the 2-character labels. The start of each word
will be replaced by 2 highlighted characters. Type any sequence
of 2 highlighted characters to jump to the corresponding label,
or use ESC to drop the labels.

The 2-character labels allow to quickly jump to any location
in the viewable selection.

1. Move the cursor to the start of the line marked '-->' below.
2. Press gw to enable the 2-character labels, and then the two
characters that replace the two leters he at the start of
here to jump to the corresponding word.

--> This is just a simple line of text.
There may be many such lines
But you really want to jump here!
This is fast with the 2-character labels.

=================================================================
= CHAPTER 9 RECAP =
=================================================================
Expand All @@ -1001,8 +1023,8 @@ lines.
* Press Ctrl-i and Ctrl-o to go forward and backward in the
jumplist.



* Type gw to enable 2-characters labels, and any 2 characters
to jump to the corresponding label, or ESC to drop the labels.



Expand Down