You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added every/spread ordinal/relative modifier. Turns relative and ordinal range modifiers into multiple target selections instead of contiguous range.
7
+
8
+
-`"take every two tokens"` selects two tokens as separate selections
9
+
-`"pre every first two lines"` puts a cursor before each of first two lines in block (results in multiple cursors)
Copy file name to clipboardExpand all lines: docs/user/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,8 @@ And here is a table of the spoken forms:
207
207
|`"previous [number] [scope]s"`| previous `[number]` instances of `[scope]`|`"take previous three funks"`|
208
208
|`"previous [scope]"`| Previous instance of `[scope]`|`"take previous funk"`|
209
209
210
+
You can prefix the modifier with `"every"` to yield multiple targets rather than a range. For example, `"take every two tokens"` selects two tokens as separate selections.
211
+
210
212
##### `"every"`
211
213
212
214
The modifier `"every"` can be used to select a syntactic element and all of its matching siblings.
@@ -217,6 +219,13 @@ The modifier `"every"` can be used to select a syntactic element and all of its
217
219
218
220
For example, the command `"take every key [blue] air"` will select every key in the map/object/dict including the token with a blue hat over the letter 'a'.
219
221
222
+
###### Use with relative / ordinal modifiers
223
+
224
+
The modifier `every` can also be used to cause [relative / ordinal modifiers](#previous--next--ordinal--number) to yield multiple targets rather than a range:
225
+
226
+
-`"take every two tokens"` selects two tokens as separate selections
227
+
-`"pre every first two lines"` puts a cursor before each of first two lines in block (results in multiple cursors)
228
+
220
229
##### `"grand"`
221
230
222
231
The modifier `"grand"` can be used to select the parent of the containing syntactic element.
0 commit comments