Skip to content

Commit 2896fa3

Browse files
Merge branch 'cursorless-dev:main' into contributing-docs-fix
2 parents 42779be + 36a8d60 commit 2896fa3

File tree

38 files changed

+290
-241
lines changed

38 files changed

+290
-241
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: 7
4+
spokenForm: change tail
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: extendThroughEndOf}
11+
usePrePhraseSnapshot: false
12+
initialState:
13+
documentContents: (a) b
14+
selections:
15+
- anchor: {line: 0, character: 3}
16+
active: {line: 0, character: 3}
17+
marks: {}
18+
finalState:
19+
documentContents: (a)
20+
selections:
21+
- anchor: {line: 0, character: 3}
22+
active: {line: 0, character: 3}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
languageId: typescriptreact
2+
command:
3+
version: 7
4+
spokenForm: change head
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: extendThroughStartOf}
11+
usePrePhraseSnapshot: false
12+
initialState:
13+
documentContents: <div>abcd</div>
14+
selections:
15+
- anchor: {line: 0, character: 7}
16+
active: {line: 0, character: 7}
17+
marks: {}
18+
finalState:
19+
documentContents: <div>cd</div>
20+
selections:
21+
- anchor: {line: 0, character: 5}
22+
active: {line: 0, character: 5}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
languageId: javascript
2+
command:
3+
version: 7
4+
spokenForm: change inside air
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
mark: {type: decoratedSymbol, symbolColor: default, character: a}
10+
modifiers:
11+
- {type: interiorOnly}
12+
usePrePhraseSnapshot: false
13+
initialState:
14+
documentContents: "true ? '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: 8}
21+
end: {line: 0, character: 11}
22+
finalState:
23+
documentContents: "true ? '' : 'bbb'"
24+
selections:
25+
- anchor: {line: 0, character: 8}
26+
active: {line: 0, character: 8}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
languageId: typescriptreact
2+
command:
3+
version: 7
4+
spokenForm: change tail
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: extendThroughEndOf}
11+
usePrePhraseSnapshot: false
12+
initialState:
13+
documentContents: <div>abcd</div>
14+
selections:
15+
- anchor: {line: 0, character: 7}
16+
active: {line: 0, character: 7}
17+
marks: {}
18+
finalState:
19+
documentContents: <div>ab</div>
20+
selections:
21+
- anchor: {line: 0, character: 7}
22+
active: {line: 0, character: 7}

data/fixtures/scopes/c/interior/interior.ternary.scope

Lines changed: 0 additions & 28 deletions
This file was deleted.

data/fixtures/scopes/csharp/interior/interior.ternary.scope

Lines changed: 0 additions & 28 deletions
This file was deleted.

data/fixtures/scopes/java/interior/interior.ternary.scope

Lines changed: 0 additions & 28 deletions
This file was deleted.

data/fixtures/scopes/javascript.core/interior/interior.ternary.scope

Lines changed: 0 additions & 28 deletions
This file was deleted.

data/fixtures/scopes/python/interior/interior.ternary.scope

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
func(aaa, bbb, ccc)
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:5-0:8
6+
>---<
7+
0| func(aaa, bbb, ccc)
8+
9+
[#1 Removal] = 0:5-0:10
10+
>-----<
11+
0| func(aaa, bbb, ccc)
12+
13+
[#1 Trailing delimiter] = 0:8-0:10
14+
>--<
15+
0| func(aaa, bbb, ccc)
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:10-0:13
22+
>---<
23+
0| func(aaa, bbb, ccc)
24+
25+
[#2 Removal] = 0:10-0:15
26+
>-----<
27+
0| func(aaa, bbb, ccc)
28+
29+
[#2 Leading delimiter] = 0:8-0:10
30+
>--<
31+
0| func(aaa, bbb, ccc)
32+
33+
[#2 Trailing delimiter] = 0:13-0:15
34+
>--<
35+
0| func(aaa, bbb, ccc)
36+
37+
[#2 Insertion delimiter] = ", "
38+
39+
40+
[#3 Content] =
41+
[#3 Domain] = 0:15-0:18
42+
>---<
43+
0| func(aaa, bbb, ccc)
44+
45+
[#3 Removal] = 0:13-0:18
46+
>-----<
47+
0| func(aaa, bbb, ccc)
48+
49+
[#3 Leading delimiter] = 0:13-0:15
50+
>--<
51+
0| func(aaa, bbb, ccc)
52+
53+
[#3 Insertion delimiter] = ", "

0 commit comments

Comments
 (0)