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
Copy file name to clipboardExpand all lines: docs/user/README.md
+28-26Lines changed: 28 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Note: If you'd like to customize any of the spoken forms, please see the [docume
56
56
57
57
## Overview
58
58
59
-
Every cursorless command consists of an action performed on a target. For example, the command `"chuck blue air"` deletes the token with a blue hat over the `"a"`. In this command, the action is `"chuck"` (delete), and the target is `"blue air"`.
59
+
Every cursorless command consists of an action performed on a target. For example, the command `"chuck blue air"` deletes the token with a blue hat over the `"a"`. In this command, the action is `"chuck"` (delete), and the target is `"blue air"`. There are no actions without at least one target.
60
60
61
61
## Targets
62
62
@@ -138,7 +138,7 @@ minimize syllables.
138
138
139
139
##### `"this"`
140
140
141
-
The word `"this"` can be used as a mark to refer to the current cursor(s) or selection(s). Note that when combined with a modifier, the `"this"` mark can be omitted, and it will be implied.
141
+
The word `"this"` can be used as a mark to refer to the current cursor(s) or selection(s) as a target. Note that when combined with a modifier, the `"this"` mark can be omitted, and it will be implied.
142
142
143
143
-`chuck this`
144
144
-`take this funk`
@@ -319,17 +319,17 @@ Selects both the token containing letter 'a' with a blue hat AND the token conta
319
319
320
320
## Actions
321
321
322
-
In any cursorless command the action defines what happens to the given target, for example deleting the target (`"chuck"`) or moving the cursor to select the target (`"take"`).
322
+
In any cursorless command, the action defines what happens to the specified target. Every command must have a target. For example, deleting the target (`"chuck"`, as in `"chuck air"`) or moving the cursor to select the target (`"take"`, as in `"take air"`).
323
323
324
324
### Cursor movement
325
325
326
326
Despite the name cursorless, some of the most basic commands in cursorless are for moving the cursor.
327
327
328
328
Note that when combined with list targets, these commands will result in multiple cursors
329
329
330
-
-`"take"`: Selects the given target
331
-
-`"pre"`: Places the cursor before the given target
332
-
-`"post"`: Places the cursor after the given target
330
+
-`"take <TARGET>"`: Selects the given target
331
+
-`"pre <TARGET>"`: Places the cursor before the given target
332
+
-`"post <TARGET>"`: Places the cursor after the given target
333
333
334
334
eg:
335
335
`pre blue air`
@@ -339,7 +339,7 @@ Moves the cursor to before the token containing letter 'a' with a blue hat.
339
339
340
340
This command can be used to delete a target without moving the cursor
341
341
342
-
-`"chuck"`
342
+
-`"chuck <TARGET>"`
343
343
344
344
eg:
345
345
`chuck blue air`
@@ -349,20 +349,23 @@ Deletes the token containing letter 'a' with a blue hat.
349
349
350
350
This command will delete a target and leave the cursor where the target used to be, making it easy to change a target
351
351
352
-
-`"change"`
352
+
-`"change <TARGET>"`
353
+
eg:
354
+
`change blue air`
355
+
Deletes the token containing letter 'a' with a blue hat then places your cursor where the token had been.
353
356
354
357
### Cut / copy
355
358
356
-
-`"carve"`: cut
357
-
-`"copy"`: copy
359
+
-`"carve <TARGET>"`: cut
360
+
-`"copy <TARGET>"`: copy
358
361
359
362
eg:
360
363
`copy blue air`
361
364
Copies the token containing letter 'a' with a blue hat.
362
365
363
366
### Swap
364
367
365
-
Swaps two targets. If the first target is omitted, it will refer to the current selection. If the targets are list targets they will be zipped together.
368
+
Swaps two targets. If the first target is omitted, it will target the current selection. If the targets are list targets they will be zipped together.
366
369
367
370
-`"swap <TARGET 1> with <TARGET 2>"`
368
371
-`"swap with <TARGET>"`
@@ -374,18 +377,18 @@ Swaps the given tokens.
374
377
375
378
### Insert empty lines
376
379
377
-
-`"drink"`: Inserts a new line above the current line, and moves the cursor to the newly created line
378
-
-`"pour"`: Inserts a new line below the current line, and moves the cursor to the newly created line
380
+
-`"drink <TARGET>"`: Inserts a new line above the target line, and moves the cursor to the newly created line
381
+
-`"pour <TARGET>"`: Inserts a new line below the target line, and moves the cursor to the newly created line
379
382
380
383
eg:
381
384
`pour blue air`
382
385
Insert empty line below the token containing letter 'a' with a blue hat.
383
386
384
387
### Rename
385
388
386
-
Executes vscode rename action on the given target
389
+
Executes vscode rename action on the specified target
387
390
388
-
-`"rename"`
391
+
-`"rename <TARGET>"`
389
392
390
393
eg:
391
394
`rename blue air`
@@ -395,9 +398,9 @@ Rename the token containing letter 'a' with a blue hat.
395
398
396
399
Scrolls a given target to the top, center or bottom of the screen.
397
400
398
-
-`"crown"`: top
399
-
-`"center"`: center
400
-
-`"bottom"`: bottom
401
+
-`"crown <TARGET>"`: top
402
+
-`"center <TARGET>"`: center
403
+
-`"bottom <TARGET>"`: bottom
401
404
402
405
eg `crown blue air` scrolls the line containing the letter 'a' with a blue hat to the top of the screen.
403
406
@@ -445,19 +448,19 @@ See [experimental documentation](experimental/wrapper-snippets.md).
445
448
446
449
### Show definition/reference/quick fix
447
450
448
-
-`"define"`
449
-
-`"reference"`
450
-
-`"hover"`
451
-
-`"quick fix"`
451
+
-`"define <TARGET>"`
452
+
-`"reference <TARGET>"`
453
+
-`"hover <TARGET>"`
454
+
-`"quick fix <TARGET>"`
452
455
453
456
eg:
454
457
`define blue air`
455
458
Shows definition for the token containing letter 'a' with a blue hat.
456
459
457
460
### Fold/unfold
458
461
459
-
-`"fold"`
460
-
-`"unfold"`
462
+
-`"fold <TARGET>"`
463
+
-`"unfold <TARGET>"`
461
464
462
465
eg:
463
466
`fold funk blue air`
@@ -467,8 +470,7 @@ Fold the function with the token containing letter 'a' with a blue hat.
467
470
468
471
Extracts a target as a variable using the VSCode refactor action
0 commit comments