Skip to content

Commit 67bbbdd

Browse files
Use collection key instead of name scope
1 parent 887d62a commit 67bbbdd

File tree

6 files changed

+200
-0
lines changed

6 files changed

+200
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
languageId: rust
2+
command:
3+
version: 6
4+
spokenForm: change key drum
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionKey}
12+
mark: {type: decoratedSymbol, symbolColor: default, character: d}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
let user = User {
17+
first_name: "John",
18+
last_name: "Doe",
19+
};
20+
selections:
21+
- anchor: {line: 3, character: 2}
22+
active: {line: 3, character: 2}
23+
marks:
24+
default.d:
25+
start: {line: 2, character: 16}
26+
end: {line: 2, character: 19}
27+
finalState:
28+
documentContents: |
29+
let user = User {
30+
first_name: "John",
31+
: "Doe",
32+
};
33+
selections:
34+
- anchor: {line: 2, character: 4}
35+
active: {line: 2, character: 4}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: rust
2+
command:
3+
version: 6
4+
spokenForm: change key drum
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionKey}
12+
mark: {type: decoratedSymbol, symbolColor: default, character: d}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
match user {
17+
User { first_name: "John", last_name: "Doe" } => {},
18+
}
19+
selections:
20+
- anchor: {line: 3, character: 0}
21+
active: {line: 3, character: 0}
22+
marks:
23+
default.d:
24+
start: {line: 1, character: 43}
25+
end: {line: 1, character: 46}
26+
finalState:
27+
documentContents: |
28+
match user {
29+
User { first_name: "John", : "Doe" } => {},
30+
}
31+
selections:
32+
- anchor: {line: 1, character: 31}
33+
active: {line: 1, character: 31}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: rust
2+
command:
3+
version: 6
4+
spokenForm: change key jury
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionKey}
12+
mark: {type: decoratedSymbol, symbolColor: default, character: j}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
match user {
17+
User { first_name: "John", last_name: "Doe" } => {},
18+
}
19+
selections:
20+
- anchor: {line: 3, character: 0}
21+
active: {line: 3, character: 0}
22+
marks:
23+
default.j:
24+
start: {line: 1, character: 24}
25+
end: {line: 1, character: 28}
26+
finalState:
27+
documentContents: |
28+
match user {
29+
User { : "John", last_name: "Doe" } => {},
30+
}
31+
selections:
32+
- anchor: {line: 1, character: 11}
33+
active: {line: 1, character: 11}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: rust
2+
command:
3+
version: 6
4+
spokenForm: change key look
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionKey}
12+
mark: {type: decoratedSymbol, symbolColor: default, character: l}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
match user {
17+
User { first_name: "John", last_name: "Doe" } => {},
18+
}
19+
selections:
20+
- anchor: {line: 3, character: 0}
21+
active: {line: 3, character: 0}
22+
marks:
23+
default.l:
24+
start: {line: 1, character: 31}
25+
end: {line: 1, character: 40}
26+
finalState:
27+
documentContents: |
28+
match user {
29+
User { first_name: "John", : "Doe" } => {},
30+
}
31+
selections:
32+
- anchor: {line: 1, character: 31}
33+
active: {line: 1, character: 31}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: rust
2+
command:
3+
version: 6
4+
spokenForm: chuck key fine
5+
action:
6+
name: remove
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionKey}
12+
mark: {type: decoratedSymbol, symbolColor: default, character: f}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
match user {
17+
User { first_name: "John", last_name: last_name } => {}
18+
}
19+
selections:
20+
- anchor: {line: 0, character: 10}
21+
active: {line: 0, character: 10}
22+
marks:
23+
default.f:
24+
start: {line: 1, character: 11}
25+
end: {line: 1, character: 21}
26+
finalState:
27+
documentContents: |
28+
match user {
29+
User { "John", last_name: last_name } => {}
30+
}
31+
selections:
32+
- anchor: {line: 0, character: 10}
33+
active: {line: 0, character: 10}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: rust
2+
command:
3+
version: 6
4+
spokenForm: chuck key jury
5+
action:
6+
name: remove
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: collectionKey}
12+
mark: {type: decoratedSymbol, symbolColor: default, character: j}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
match user {
17+
User { first_name: "John", last_name: last_name } => {}
18+
}
19+
selections:
20+
- anchor: {line: 0, character: 10}
21+
active: {line: 0, character: 10}
22+
marks:
23+
default.j:
24+
start: {line: 1, character: 24}
25+
end: {line: 1, character: 28}
26+
finalState:
27+
documentContents: |
28+
match user {
29+
User { "John", last_name: last_name } => {}
30+
}
31+
selections:
32+
- anchor: {line: 0, character: 10}
33+
active: {line: 0, character: 10}

0 commit comments

Comments
 (0)