Skip to content

Commit e9fcb2c

Browse files
committed
Bunch of changes
1 parent 85d205f commit e9fcb2c

26 files changed

+653
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from talon import Context, Module
2+
3+
mod = Module()
4+
ctx = Context()
5+
6+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
7+
ctx.list['user.cursorless_walkthrough_list'] = {
8+
"spoken form": "whatever",
9+
}
10+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def print_color(color, invert=False):
2+
if invert:
3+
print(invert_color(color))
4+
else:
5+
print(color)
6+
7+
8+
def invert_color(color):
9+
if color == "black":
10+
return "white"
11+
12+
13+
print_color("black")
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: bring block made
5+
action: replaceWithTarget
6+
targets:
7+
- type: primitive
8+
selectionType: paragraph
9+
mark: {type: decoratedSymbol, symbolColor: default, character: m}
10+
- {type: primitive, isImplicit: true}
11+
initialState:
12+
documentContents: |+
13+
from talon import Context, Module
14+
15+
mod = Module()
16+
ctx = Context()
17+
18+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
19+
ctx.list['user.cursorless_walkthrough_list'] = {
20+
"spoken form": "whatever",
21+
}
22+
23+
selections:
24+
- anchor: {line: 10, character: 0}
25+
active: {line: 10, character: 0}
26+
marks:
27+
default.m:
28+
start: {line: 5, character: 0}
29+
end: {line: 5, character: 3}
30+
finalState:
31+
documentContents: |-
32+
from talon import Context, Module
33+
34+
mod = Module()
35+
ctx = Context()
36+
37+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
38+
ctx.list['user.cursorless_walkthrough_list'] = {
39+
"spoken form": "whatever",
40+
}
41+
42+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
43+
ctx.list['user.cursorless_walkthrough_list'] = {
44+
"spoken form": "whatever",
45+
}
46+
selections:
47+
- anchor: {line: 13, character: 1}
48+
active: {line: 13, character: 1}
49+
thatMark:
50+
- anchor: {line: 10, character: 0}
51+
active: {line: 13, character: 1}
52+
sourceMark:
53+
- anchor: {line: 5, character: 0}
54+
active: {line: 8, character: 1}
55+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: m}, selectionType: paragraph, position: contents, insideOutsideType: null, modifier: {type: identity}}, {type: primitive, mark: {type: cursor}, selectionType: paragraph, position: contents, insideOutsideType: null, modifier: {type: identity}}]
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: clear core sun
5+
action: clearAndSetSelection
6+
targets:
7+
- type: primitive
8+
modifier: {type: surroundingPair, delimiter: any, delimiterInclusion: interiorOnly}
9+
mark: {type: decoratedSymbol, symbolColor: default, character: s}
10+
initialState:
11+
documentContents: |-
12+
from talon import Context, Module
13+
14+
mod = Module()
15+
ctx = Context()
16+
17+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
18+
ctx.list['user.cursorless_walkthrough_list'] = {
19+
"spoken form": "whatever",
20+
}
21+
22+
mod.list("emoji", desc="Emojis")
23+
ctx.list['user.emoji'] = {
24+
"spoken form": "whatever",
25+
}
26+
selections:
27+
- anchor: {line: 10, character: 30}
28+
active: {line: 10, character: 30}
29+
marks:
30+
default.s:
31+
start: {line: 12, character: 5}
32+
end: {line: 12, character: 11}
33+
finalState:
34+
documentContents: |-
35+
from talon import Context, Module
36+
37+
mod = Module()
38+
ctx = Context()
39+
40+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
41+
ctx.list['user.cursorless_walkthrough_list'] = {
42+
"spoken form": "whatever",
43+
}
44+
45+
mod.list("emoji", desc="Emojis")
46+
ctx.list['user.emoji'] = {
47+
"": "whatever",
48+
}
49+
selections:
50+
- anchor: {line: 12, character: 5}
51+
active: {line: 12, character: 5}
52+
thatMark:
53+
- anchor: {line: 12, character: 5}
54+
active: {line: 12, character: 5}
55+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: s}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: surroundingPair, delimiter: any, delimiterInclusion: interiorOnly}}]
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: clear core yank
5+
action: clearAndSetSelection
6+
targets:
7+
- type: primitive
8+
modifier: {type: surroundingPair, delimiter: any, delimiterInclusion: interiorOnly}
9+
mark: {type: decoratedSymbol, symbolColor: default, character: 'y'}
10+
initialState:
11+
documentContents: |-
12+
from talon import Context, Module
13+
14+
mod = Module()
15+
ctx = Context()
16+
17+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
18+
ctx.list['user.cursorless_walkthrough_list'] = {
19+
"spoken form": "whatever",
20+
}
21+
22+
mod.list("emoji", desc="My tutorial list")
23+
ctx.list['user.emoji'] = {
24+
"spoken form": "whatever",
25+
}
26+
selections:
27+
- anchor: {line: 10, character: 15}
28+
active: {line: 10, character: 15}
29+
- anchor: {line: 11, character: 20}
30+
active: {line: 11, character: 20}
31+
marks:
32+
default.y:
33+
start: {line: 10, character: 24}
34+
end: {line: 10, character: 26}
35+
finalState:
36+
documentContents: |-
37+
from talon import Context, Module
38+
39+
mod = Module()
40+
ctx = Context()
41+
42+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
43+
ctx.list['user.cursorless_walkthrough_list'] = {
44+
"spoken form": "whatever",
45+
}
46+
47+
mod.list("emoji", desc="")
48+
ctx.list['user.emoji'] = {
49+
"spoken form": "whatever",
50+
}
51+
selections:
52+
- anchor: {line: 10, character: 24}
53+
active: {line: 10, character: 24}
54+
thatMark:
55+
- anchor: {line: 10, character: 24}
56+
active: {line: 10, character: 24}
57+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: 'y'}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: surroundingPair, delimiter: any, delimiterInclusion: interiorOnly}}]
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: clear down score and cap
5+
action: clearAndSetSelection
6+
targets:
7+
- type: list
8+
elements:
9+
- type: primitive
10+
mark: {type: decoratedSymbol, symbolColor: default, character: _}
11+
- type: primitive
12+
mark: {type: decoratedSymbol, symbolColor: default, character: c}
13+
initialState:
14+
documentContents: |-
15+
from talon import Context, Module
16+
17+
mod = Module()
18+
ctx = Context()
19+
20+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
21+
ctx.list['user.cursorless_walkthrough_list'] = {
22+
"spoken form": "whatever",
23+
}
24+
25+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
26+
ctx.list['user.cursorless_walkthrough_list'] = {
27+
"spoken form": "whatever",
28+
}
29+
selections:
30+
- anchor: {line: 13, character: 1}
31+
active: {line: 13, character: 1}
32+
marks:
33+
default._:
34+
start: {line: 10, character: 10}
35+
end: {line: 10, character: 37}
36+
default.c:
37+
start: {line: 11, character: 15}
38+
end: {line: 11, character: 42}
39+
finalState:
40+
documentContents: |-
41+
from talon import Context, Module
42+
43+
mod = Module()
44+
ctx = Context()
45+
46+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
47+
ctx.list['user.cursorless_walkthrough_list'] = {
48+
"spoken form": "whatever",
49+
}
50+
51+
mod.list("", desc="My tutorial list")
52+
ctx.list['user.'] = {
53+
"spoken form": "whatever",
54+
}
55+
selections:
56+
- anchor: {line: 10, character: 10}
57+
active: {line: 10, character: 10}
58+
- anchor: {line: 11, character: 15}
59+
active: {line: 11, character: 15}
60+
thatMark:
61+
- anchor: {line: 10, character: 10}
62+
active: {line: 10, character: 10}
63+
- anchor: {line: 11, character: 15}
64+
active: {line: 11, character: 15}
65+
fullTargets: [{type: list, elements: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: _}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}, {type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: c}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}]}]
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: clear repper leper
5+
action: clearAndSetSelection
6+
targets:
7+
- type: primitive
8+
mark: {type: decoratedSymbol, symbolColor: default, character: )}
9+
initialState:
10+
documentContents: |-
11+
from talon import Context, Module
12+
13+
mod = Module()
14+
ctx = Context()
15+
16+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
17+
ctx.list['user.cursorless_walkthrough_list'] = {
18+
"spoken form": "whatever",
19+
}
20+
21+
mod.list("emoji", desc="Emojis")
22+
ctx.list['user.emoji'] = {
23+
"smile": ":-)",
24+
"frown": ":-)",
25+
}
26+
selections:
27+
- anchor: {line: 13, character: 10}
28+
active: {line: 13, character: 10}
29+
marks:
30+
default.):
31+
start: {line: 13, character: 16}
32+
end: {line: 13, character: 17}
33+
finalState:
34+
documentContents: |-
35+
from talon import Context, Module
36+
37+
mod = Module()
38+
ctx = Context()
39+
40+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
41+
ctx.list['user.cursorless_walkthrough_list'] = {
42+
"spoken form": "whatever",
43+
}
44+
45+
mod.list("emoji", desc="Emojis")
46+
ctx.list['user.emoji'] = {
47+
"smile": ":-)",
48+
"frown": ":-",
49+
}
50+
selections:
51+
- anchor: {line: 13, character: 16}
52+
active: {line: 13, character: 16}
53+
thatMark:
54+
- anchor: {line: 13, character: 16}
55+
active: {line: 13, character: 16}
56+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: )}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}]
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
languageId: python
2+
command:
3+
version: 1
4+
spokenForm: clear whale
5+
action: clearAndSetSelection
6+
targets:
7+
- type: primitive
8+
mark: {type: decoratedSymbol, symbolColor: default, character: w}
9+
initialState:
10+
documentContents: |-
11+
from talon import Context, Module
12+
13+
mod = Module()
14+
ctx = Context()
15+
16+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
17+
ctx.list['user.cursorless_walkthrough_list'] = {
18+
"spoken form": "whatever",
19+
}
20+
21+
mod.list("emoji", desc="Emojis")
22+
ctx.list['user.emoji'] = {
23+
"smile": "whatever",
24+
}
25+
selections:
26+
- anchor: {line: 12, character: 10}
27+
active: {line: 12, character: 10}
28+
marks:
29+
default.w:
30+
start: {line: 12, character: 14}
31+
end: {line: 12, character: 22}
32+
finalState:
33+
documentContents: |-
34+
from talon import Context, Module
35+
36+
mod = Module()
37+
ctx = Context()
38+
39+
mod.list("cursorless_walkthrough_list", desc="My tutorial list")
40+
ctx.list['user.cursorless_walkthrough_list'] = {
41+
"spoken form": "whatever",
42+
}
43+
44+
mod.list("emoji", desc="Emojis")
45+
ctx.list['user.emoji'] = {
46+
"smile": "",
47+
}
48+
selections:
49+
- anchor: {line: 12, character: 14}
50+
active: {line: 12, character: 14}
51+
thatMark:
52+
- anchor: {line: 12, character: 14}
53+
active: {line: 12, character: 14}
54+
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: w}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: identity}}]

0 commit comments

Comments
 (0)