Skip to content

Commit 4ac0276

Browse files
Added tests for pour word (#1562)
Fixes #1302 ## Checklist - [x] 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 ee1e033 commit 4ac0276

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
languageId: plaintext
2+
command:
3+
version: 5
4+
spokenForm: pour word
5+
action: {name: editNewLineAfter}
6+
targets:
7+
- type: primitive
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: word}
11+
usePrePhraseSnapshot: true
12+
initialState:
13+
documentContents: aaa_bbb
14+
selections:
15+
- anchor: {line: 0, character: 0}
16+
active: {line: 0, character: 0}
17+
marks: {}
18+
finalState:
19+
documentContents: aaa__bbb
20+
selections:
21+
- anchor: {line: 0, character: 4}
22+
active: {line: 0, character: 4}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
languageId: plaintext
2+
command:
3+
version: 5
4+
spokenForm: pour word air
5+
action: {name: editNewLineAfter}
6+
targets:
7+
- type: primitive
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: word}
11+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: aaa_bbb
15+
selections:
16+
- anchor: {line: 0, character: 0}
17+
active: {line: 0, character: 0}
18+
marks:
19+
default.a:
20+
start: {line: 0, character: 0}
21+
end: {line: 0, character: 7}
22+
finalState:
23+
documentContents: aaa_bbb_
24+
selections:
25+
- anchor: {line: 0, character: 8}
26+
active: {line: 0, character: 8}

0 commit comments

Comments
 (0)