File tree 3 files changed +11
-5
lines changed
cursorless-talon/src/cheatsheet/sections
packages/cheatsheet/src/lib/sampleSpokenFormInfos 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ def get_actions():
35
35
simple_actions ,
36
36
{
37
37
"callAsFunction" : "Call <target> on selection" ,
38
+ "editNewLineAfter" : "Edit new line/scope after" ,
39
+ "editNewLineBefore" : "Edit new line/scope before" ,
38
40
},
39
41
),
40
42
{
Original file line number Diff line number Diff line change @@ -579,9 +579,13 @@ For example:
579
579
- `"drink <TARGET>"`: Inserts a new line above the target line, and moves the cursor to the newly created line
580
580
- `"pour <TARGET>"`: Inserts a new line below the target line, and moves the cursor to the newly created line
581
581
582
- eg:
583
- `pour blue air`
584
- Insert empty line below the token containing letter 'a' with a blue hat.
582
+ eg: `pour blue air` will insert empty line below the token containing letter 'a' with a blue hat and moves the cursor to the new line.
583
+
584
+ Note: `"drink"` and `"pour"` are actually a bit more versatile than just lines.
585
+ If you use a [syntactic scope](#syntactic-scopes) modifier on the target, then`"drink"` and `"pour"` will do the
586
+ appropriate insertions to prepare the text for a new instance of that scope.
587
+
588
+ eg: `pour item air` will insert a comma and space after the air item, and place the cursor after the inserted characters.
585
589
586
590
### Homophones
587
591
Original file line number Diff line number Diff line change 70
70
"variations" : [
71
71
{
72
72
"spokenForm" : " pour <target>" ,
73
- "description" : " Edit new line after"
73
+ "description" : " Edit new line/scope after"
74
74
}
75
75
]
76
76
},
80
80
"variations" : [
81
81
{
82
82
"spokenForm" : " drink <target>" ,
83
- "description" : " Edit new line before"
83
+ "description" : " Edit new line/scope before"
84
84
}
85
85
]
86
86
},
You can’t perform that action at this time.
0 commit comments