Skip to content

Commit

Permalink
Add some simple next steps
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Jan 2, 2022
1 parent 36d3f1b commit 8429c66
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
languageId: python
command:
version: 1
spokenForm: bring argue blue vest after blue cap
action: replaceWithTarget
targets:
- type: primitive
modifier: {type: containingScope, scopeType: argumentOrParameter, includeSiblings: false}
mark: {type: decoratedSymbol, symbolColor: blue, character: v}
- type: primitive
mark: {type: decoratedSymbol, symbolColor: blue, character: c}
position: after
initialState:
documentContents: |
def print_color(color, invert=False):
if invert:
print(invert_color(color))
else:
print(color)
def invert_color(color):
if color == "black":
return "white"
if color == "white":
return "black"
return color
print_color("black")
selections:
- anchor: {line: 12, character: 16}
active: {line: 12, character: 16}
marks:
blue.v:
start: {line: 0, character: 23}
end: {line: 0, character: 29}
blue.c:
start: {line: 7, character: 17}
end: {line: 7, character: 22}
finalState:
documentContents: |
def print_color(color, invert=False):
if invert:
print(invert_color(color))
else:
print(color)
def invert_color(color, invert=False):
if color == "black":
return "white"
if color == "white":
return "black"
return color
print_color("black")
selections:
- anchor: {line: 12, character: 16}
active: {line: 12, character: 16}
thatMark:
- anchor: {line: 7, character: 22}
active: {line: 7, character: 36}
sourceMark:
- anchor: {line: 0, character: 23}
active: {line: 0, character: 35}
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}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
languageId: python
command:
version: 1
spokenForm: bring blue cap to value risk
action: replaceWithTarget
targets:
- type: primitive
mark: {type: decoratedSymbol, symbolColor: blue, character: c}
- type: primitive
modifier: {type: containingScope, scopeType: value, includeSiblings: false}
mark: {type: decoratedSymbol, symbolColor: default, character: r}
initialState:
documentContents: |
def print_color(color, invert=False):
if invert:
print(invert_color(color))
else:
print(color)
def invert_color(color):
if color == "black":
return "white"
if color == "white":
return "black"
return "black"
print_color("black")
selections:
- anchor: {line: 12, character: 18}
active: {line: 12, character: 18}
marks:
blue.c:
start: {line: 7, character: 17}
end: {line: 7, character: 22}
default.r:
start: {line: 12, character: 4}
end: {line: 12, character: 10}
finalState:
documentContents: |
def print_color(color, invert=False):
if invert:
print(invert_color(color))
else:
print(color)
def invert_color(color):
if color == "black":
return "white"
if color == "white":
return "black"
return color
print_color("black")
selections:
- anchor: {line: 12, character: 16}
active: {line: 12, character: 16}
thatMark:
- anchor: {line: 12, character: 11}
active: {line: 12, character: 16}
sourceMark:
- anchor: {line: 7, character: 17}
active: {line: 7, character: 22}
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}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
languageId: python
command:
version: 1
spokenForm: bring state urge
action: replaceWithTarget
targets:
- type: primitive
modifier: {type: containingScope, scopeType: statement, includeSiblings: false}
mark: {type: decoratedSymbol, symbolColor: default, character: u}
- {type: primitive, isImplicit: true}
initialState:
documentContents: |
def print_color(color, invert=False):
if invert:
print(invert_color(color))
else:
print(color)
def invert_color(color):
if color == "black":
return "white"
if color == "white":
return "black"
print_color("black")
selections:
- anchor: {line: 12, character: 4}
active: {line: 12, character: 4}
marks:
default.u:
start: {line: 11, character: 8}
end: {line: 11, character: 14}
finalState:
documentContents: |
def print_color(color, invert=False):
if invert:
print(invert_color(color))
else:
print(color)
def invert_color(color):
if color == "black":
return "white"
if color == "white":
return "black"
return "black"
print_color("black")
selections:
- anchor: {line: 12, character: 18}
active: {line: 12, character: 18}
thatMark:
- anchor: {line: 12, character: 4}
active: {line: 12, character: 18}
sourceMark:
- anchor: {line: 11, character: 8}
active: {line: 11, character: 22}
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 comments on commit 8429c66

Please sign in to comment.