Skip to content

Commit c52fa4c

Browse files
Added start of/end of range tests (#1668)
Fixes #741 ## 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 1c38776 commit c52fa4c

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
languageId: plaintext
2+
command:
3+
version: 6
4+
spokenForm: chuck start of batt past end of fine
5+
action:
6+
name: remove
7+
target:
8+
type: range
9+
anchor:
10+
type: primitive
11+
modifiers:
12+
- {type: startOf}
13+
mark: {type: decoratedSymbol, symbolColor: default, character: b}
14+
active:
15+
type: primitive
16+
modifiers:
17+
- {type: endOf}
18+
mark: {type: decoratedSymbol, symbolColor: default, character: f}
19+
excludeAnchor: false
20+
excludeActive: false
21+
usePrePhraseSnapshot: true
22+
initialState:
23+
documentContents: |-
24+
foo
25+
26+
bar
27+
baz
28+
selections:
29+
- anchor: {line: 3, character: 3}
30+
active: {line: 3, character: 3}
31+
marks:
32+
default.b:
33+
start: {line: 2, character: 0}
34+
end: {line: 2, character: 3}
35+
default.f:
36+
start: {line: 0, character: 0}
37+
end: {line: 0, character: 3}
38+
finalState:
39+
documentContents: |-
40+
foobar
41+
baz
42+
selections:
43+
- anchor: {line: 1, character: 3}
44+
active: {line: 1, character: 3}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
languageId: plaintext
2+
command:
3+
version: 6
4+
spokenForm: chuck start of block past start of file
5+
action:
6+
name: remove
7+
target:
8+
type: range
9+
anchor:
10+
type: primitive
11+
modifiers:
12+
- {type: startOf}
13+
- type: containingScope
14+
scopeType: {type: paragraph}
15+
active:
16+
type: primitive
17+
modifiers:
18+
- {type: startOf}
19+
- type: containingScope
20+
scopeType: {type: document}
21+
excludeAnchor: false
22+
excludeActive: false
23+
usePrePhraseSnapshot: true
24+
initialState:
25+
documentContents: |-
26+
foo
27+
28+
bar
29+
baz
30+
selections:
31+
- anchor: {line: 3, character: 3}
32+
active: {line: 3, character: 3}
33+
marks: {}
34+
finalState:
35+
documentContents: |-
36+
bar
37+
baz
38+
selections:
39+
- anchor: {line: 1, character: 3}
40+
active: {line: 1, character: 3}

0 commit comments

Comments
 (0)