Skip to content

Commit 7cb2d51

Browse files
Added bring before round inference test (#1572)
Fixes #838 ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 212dd83 commit 7cb2d51

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
languageId: plaintext
2+
command:
3+
version: 5
4+
spokenForm: bring air before round
5+
action: {name: replaceWithTarget}
6+
targets:
7+
- type: primitive
8+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
9+
- type: primitive
10+
modifiers:
11+
- {type: position, position: before}
12+
- type: containingScope
13+
scopeType: {type: surroundingPair, delimiter: parentheses}
14+
usePrePhraseSnapshot: true
15+
initialState:
16+
documentContents: |-
17+
()
18+
(a)
19+
selections:
20+
- anchor: {line: 0, character: 1}
21+
active: {line: 0, character: 1}
22+
marks:
23+
default.a:
24+
start: {line: 1, character: 1}
25+
end: {line: 1, character: 2}
26+
finalState:
27+
documentContents: |-
28+
a ()
29+
(a)
30+
selections:
31+
- anchor: {line: 0, character: 3}
32+
active: {line: 0, character: 3}

0 commit comments

Comments
 (0)