Skip to content

Commit 46e1344

Browse files
committed
Add some simple next steps
1 parent e9fcb2c commit 46e1344

File tree

3 files changed

+198
-0
lines changed

3 files changed

+198
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: bring argue blue vest after blue cap
5+
action: replaceWithTarget
6+
targets:
7+
- type: primitive
8+
modifier: {type: containingScope, scopeType: argumentOrParameter, includeSiblings: false}
9+
mark: {type: decoratedSymbol, symbolColor: blue, character: v}
10+
- type: primitive
11+
mark: {type: decoratedSymbol, symbolColor: blue, character: c}
12+
position: after
13+
initialState:
14+
documentContents: |
15+
def print_color(color, invert=False):
16+
if invert:
17+
print(invert_color(color))
18+
else:
19+
print(color)
20+
21+
22+
def invert_color(color):
23+
if color == "black":
24+
return "white"
25+
if color == "white":
26+
return "black"
27+
return color
28+
29+
30+
print_color("black")
31+
selections:
32+
- anchor: {line: 12, character: 16}
33+
active: {line: 12, character: 16}
34+
marks:
35+
blue.v:
36+
start: {line: 0, character: 23}
37+
end: {line: 0, character: 29}
38+
blue.c:
39+
start: {line: 7, character: 17}
40+
end: {line: 7, character: 22}
41+
finalState:
42+
documentContents: |
43+
def print_color(color, invert=False):
44+
if invert:
45+
print(invert_color(color))
46+
else:
47+
print(color)
48+
49+
50+
def invert_color(color, invert=False):
51+
if color == "black":
52+
return "white"
53+
if color == "white":
54+
return "black"
55+
return color
56+
57+
58+
print_color("black")
59+
selections:
60+
- anchor: {line: 12, character: 16}
61+
active: {line: 12, character: 16}
62+
thatMark:
63+
- anchor: {line: 7, character: 22}
64+
active: {line: 7, character: 36}
65+
sourceMark:
66+
- anchor: {line: 0, character: 23}
67+
active: {line: 0, character: 35}
68+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: blue, character: v}, selectionType: token, position: contents, insideOutsideType: null, modifier: {type: containingScope, scopeType: argumentOrParameter, includeSiblings: false}, isImplicit: false}, {type: primitive, mark: {type: decoratedSymbol, symbolColor: blue, character: c}, selectionType: token, position: after, insideOutsideType: null, modifier: {type: containingScope, scopeType: argumentOrParameter, includeSiblings: false}, isImplicit: false}]
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: bring blue cap to value risk
5+
action: replaceWithTarget
6+
targets:
7+
- type: primitive
8+
mark: {type: decoratedSymbol, symbolColor: blue, character: c}
9+
- type: primitive
10+
modifier: {type: containingScope, scopeType: value, includeSiblings: false}
11+
mark: {type: decoratedSymbol, symbolColor: default, character: r}
12+
initialState:
13+
documentContents: |
14+
def print_color(color, invert=False):
15+
if invert:
16+
print(invert_color(color))
17+
else:
18+
print(color)
19+
20+
21+
def invert_color(color):
22+
if color == "black":
23+
return "white"
24+
if color == "white":
25+
return "black"
26+
return "black"
27+
28+
29+
print_color("black")
30+
selections:
31+
- anchor: {line: 12, character: 18}
32+
active: {line: 12, character: 18}
33+
marks:
34+
blue.c:
35+
start: {line: 7, character: 17}
36+
end: {line: 7, character: 22}
37+
default.r:
38+
start: {line: 12, character: 4}
39+
end: {line: 12, character: 10}
40+
finalState:
41+
documentContents: |
42+
def print_color(color, invert=False):
43+
if invert:
44+
print(invert_color(color))
45+
else:
46+
print(color)
47+
48+
49+
def invert_color(color):
50+
if color == "black":
51+
return "white"
52+
if color == "white":
53+
return "black"
54+
return color
55+
56+
57+
print_color("black")
58+
selections:
59+
- anchor: {line: 12, character: 16}
60+
active: {line: 12, character: 16}
61+
thatMark:
62+
- anchor: {line: 12, character: 11}
63+
active: {line: 12, character: 16}
64+
sourceMark:
65+
- anchor: {line: 7, character: 17}
66+
active: {line: 7, character: 22}
67+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: blue, character: c}, selectionType: token, position: contents, insideOutsideType: null, modifier: {type: identity}, isImplicit: false}, {type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: r}, selectionType: token, position: contents, insideOutsideType: null, modifier: {type: containingScope, scopeType: value, includeSiblings: false}, isImplicit: false}]
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: bring state urge
5+
action: replaceWithTarget
6+
targets:
7+
- type: primitive
8+
modifier: {type: containingScope, scopeType: statement, includeSiblings: false}
9+
mark: {type: decoratedSymbol, symbolColor: default, character: u}
10+
- {type: primitive, isImplicit: true}
11+
initialState:
12+
documentContents: |
13+
def print_color(color, invert=False):
14+
if invert:
15+
print(invert_color(color))
16+
else:
17+
print(color)
18+
19+
20+
def invert_color(color):
21+
if color == "black":
22+
return "white"
23+
if color == "white":
24+
return "black"
25+
26+
27+
28+
print_color("black")
29+
selections:
30+
- anchor: {line: 12, character: 4}
31+
active: {line: 12, character: 4}
32+
marks:
33+
default.u:
34+
start: {line: 11, character: 8}
35+
end: {line: 11, character: 14}
36+
finalState:
37+
documentContents: |
38+
def print_color(color, invert=False):
39+
if invert:
40+
print(invert_color(color))
41+
else:
42+
print(color)
43+
44+
45+
def invert_color(color):
46+
if color == "black":
47+
return "white"
48+
if color == "white":
49+
return "black"
50+
return "black"
51+
52+
53+
print_color("black")
54+
selections:
55+
- anchor: {line: 12, character: 18}
56+
active: {line: 12, character: 18}
57+
thatMark:
58+
- anchor: {line: 12, character: 4}
59+
active: {line: 12, character: 18}
60+
sourceMark:
61+
- anchor: {line: 11, character: 8}
62+
active: {line: 11, character: 22}
63+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: u}, selectionType: token, position: contents, insideOutsideType: null, modifier: {type: containingScope, scopeType: statement, includeSiblings: false}, isImplicit: false}, {type: primitive, mark: {type: cursor}, selectionType: token, position: contents, insideOutsideType: null, modifier: {type: identity}, isImplicit: true}]

0 commit comments

Comments
 (0)