Offsets
Stand a step from the match: /lat/e lands on its end, /lat/e+3 three past it, /lat/s+2 from its start, /lat/+1 on the line below, and n keeps the stance.
Monday, 1:30 p.m. Dispatch's check: every longitude in zones.ts should be about -80. Searching for lng: lands you on the l of the word, and what you want is the number, which starts two characters after the colon.
You could search and then step. Or you could tell the detector where to put your feet.
Warm-up from earlier chapters
Two from earlier chapters, from memory, before the new idea. Two wrong tries show the answer.
user.user.Stand at the far edge
Add /e after the pattern and the search lands on the end of the match instead of its start: /lng/e puts you on the g. Add a number to step past it: /lng: /e+1 lands one step past the space after the colon, on the first character of the number.
{ name: "Wynwood", lat: 25.8005, lng: -80.1994 },/lat↵/lat/e↵/lat/e+3↵From the near edge, or the line below
/lat/s+2 counts from the start of the match instead (b means the same as s), and a minus counts backwards: /lat/s-2 stands two characters before it. A bare number is a line offset: /lat/+1 lands at the start of the line below the match.
Keep the stance
The best part: n and N keep the offset. Search once with /lng: /e+1 and every n after that lands on the next longitude's number, not on the word. And //e reuses the last pattern with a new offset, without retyping it.
Every longitude
Land on the first character of each longitude, top to bottom. One search with an offset, then n does the rest.
This exercise needs a keyboard. Read on, and play it at your computer.
Where do your feet go?
You search with /lat/e and ↵. Which character is the cursor on?
Stances, from memory
Press the keys.
order, landing on its last letter.order, landing on its last letter.Every fee
Dispatch wants the fees read out while you're here: land on the first digit of every fee in zones.ts, top to bottom. One of them changes today: the bridge on the way to Coral Way is closed, so its fee goes up to 4. Change it when you land there. Plant your feet once (the offset), then let n keep the stance.
Stuck? Show a hint
The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.
See ProThis exercise needs a keyboard. Read on, and play it at your computer.