Skip to content

Commit ae46167

Browse files
committed
Upgrade tutorial steps
1 parent 1b9a97b commit ae46167

26 files changed

+119
-67
lines changed

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/bringBlockMade.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: bring block made
5-
action: replaceWithTarget
4+
version: 2
65
targets:
76
- type: primitive
8-
selectionType: paragraph
97
mark: {type: decoratedSymbol, symbolColor: default, character: m}
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: paragraph}
1011
- {type: primitive, isImplicit: true}
12+
usePrePhraseSnapshot: false
13+
action: {name: replaceWithTarget}
1114
initialState:
1215
documentContents: |+
1316
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/clearCoreSun.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: clear core sun
5-
action: clearAndSetSelection
4+
version: 2
65
targets:
76
- type: primitive
8-
modifier: {type: surroundingPair, delimiter: any, delimiterInclusion: interiorOnly}
97
mark: {type: decoratedSymbol, symbolColor: default, character: s}
8+
modifiers:
9+
- {type: interiorOnly}
10+
- type: containingScope
11+
scopeType: {type: surroundingPair, delimiter: any}
12+
usePrePhraseSnapshot: false
13+
action: {name: clearAndSetSelection}
1014
initialState:
1115
documentContents: |-
1216
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/clearCoreYank.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: clear core yank
5-
action: clearAndSetSelection
4+
version: 2
65
targets:
76
- type: primitive
8-
modifier: {type: surroundingPair, delimiter: any, delimiterInclusion: interiorOnly}
97
mark: {type: decoratedSymbol, symbolColor: default, character: 'y'}
8+
modifiers:
9+
- {type: interiorOnly}
10+
- type: containingScope
11+
scopeType: {type: surroundingPair, delimiter: any}
12+
usePrePhraseSnapshot: false
13+
action: {name: clearAndSetSelection}
1014
initialState:
1115
documentContents: |-
1216
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/clearDownScoreAndCap.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: clear down score and cap
5-
action: clearAndSetSelection
4+
version: 2
65
targets:
76
- type: list
87
elements:
98
- type: primitive
109
mark: {type: decoratedSymbol, symbolColor: default, character: _}
1110
- type: primitive
1211
mark: {type: decoratedSymbol, symbolColor: default, character: c}
12+
usePrePhraseSnapshot: false
13+
action: {name: clearAndSetSelection}
1314
initialState:
1415
documentContents: |-
1516
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/clearRepperLeper.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: clear repper leper
5-
action: clearAndSetSelection
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: )}
8+
usePrePhraseSnapshot: false
9+
action: {name: clearAndSetSelection}
910
initialState:
1011
documentContents: |-
1112
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/clearWhale.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: clear whale
5-
action: clearAndSetSelection
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: w}
8+
usePrePhraseSnapshot: false
9+
action: {name: clearAndSetSelection}
910
initialState:
1011
documentContents: |-
1112
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/takeLookCloneLineWordFrown.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: take look clone line word frown
5-
action: setSelection
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: l}
8+
usePrePhraseSnapshot: false
9+
action: {name: setSelection}
910
initialState:
1011
documentContents: |-
1112
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/extra-cloning-a-talon-list/takeLookCloneLineWordFrown2.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: take look clone line word frown
5-
action: insertCopyAfter
4+
version: 2
65
targets:
7-
- {type: primitive, selectionType: line}
6+
- type: primitive
7+
modifiers:
8+
- type: containingScope
9+
scopeType: {type: line}
10+
usePrePhraseSnapshot: false
11+
action: {name: insertCopyAfter}
812
initialState:
913
documentContents: |-
1014
from talon import Context, Module

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/chuckDrum.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: chuck drum
5-
action: remove
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: d}
8+
usePrePhraseSnapshot: false
9+
action: {name: remove}
910
initialState:
1011
documentContents: |-
1112
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/chuckLineLook.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: chuck line look
5-
action: remove
4+
version: 2
65
targets:
76
- type: primitive
8-
selectionType: line
97
mark: {type: decoratedSymbol, symbolColor: default, character: l}
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: line}
11+
usePrePhraseSnapshot: false
12+
action: {name: remove}
1013
initialState:
1114
documentContents: |-
1215
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/clearTrap.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: clear trap
5-
action: clearAndSetSelection
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: t}
8+
usePrePhraseSnapshot: false
9+
action: {name: clearAndSetSelection}
910
initialState:
1011
documentContents: |-
1112
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/clearWhaleWordYou.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: clear whale word you
5-
action: clearAndSetSelection
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: w}
8+
usePrePhraseSnapshot: false
9+
action: {name: clearAndSetSelection}
910
initialState:
1011
documentContents: |-
1112
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/postLook.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: post look
5-
action: setSelectionAfter
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: l}
8+
usePrePhraseSnapshot: false
9+
action: {name: setSelectionAfter}
910
initialState:
1011
documentContents: |-
1112
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/preInk.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: pre ink
5-
action: setSelectionBefore
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: i}
8+
usePrePhraseSnapshot: false
9+
action: {name: setSelectionBefore}
910
initialState:
1011
documentContents: |-
1112
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/takeBlueSun.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: take blue sun
5-
action: setSelection
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: blue, character: s}
8+
usePrePhraseSnapshot: false
9+
action: {name: setSelection}
910
initialState:
1011
documentContents: |-
1112
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/takeCapAndWhale.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: take cap and whale
5-
action: setSelection
4+
version: 2
65
targets:
76
- type: list
87
elements:
98
- type: primitive
109
mark: {type: decoratedSymbol, symbolColor: default, character: c}
1110
- type: primitive
1211
mark: {type: decoratedSymbol, symbolColor: default, character: w}
12+
usePrePhraseSnapshot: false
13+
action: {name: setSelection}
1314
initialState:
1415
documentContents: |-
1516
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/takeEachPastKick.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: take each past kick
5-
action: setSelection
4+
version: 2
65
targets:
76
- type: range
8-
start:
7+
anchor:
98
type: primitive
109
mark: {type: decoratedSymbol, symbolColor: default, character: e}
11-
end:
10+
active:
1211
type: primitive
1312
mark: {type: decoratedSymbol, symbolColor: default, character: k}
14-
excludeStart: false
15-
excludeEnd: false
13+
excludeAnchor: false
14+
excludeActive: false
15+
usePrePhraseSnapshot: false
16+
action: {name: setSelection}
1617
initialState:
1718
documentContents: |-
1819
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/takeLine.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: take line
5-
action: setSelection
4+
version: 2
65
targets:
7-
- {type: primitive, selectionType: line}
6+
- type: primitive
7+
modifiers:
8+
- type: containingScope
9+
scopeType: {type: line}
10+
usePrePhraseSnapshot: false
11+
action: {name: setSelection}
812
initialState:
913
documentContents: |-
1014
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-1-basics/takeWhale.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
languageId: plaintext
22
command:
3-
version: 1
43
spokenForm: take whale
5-
action: setSelection
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: default, character: w}
8+
usePrePhraseSnapshot: false
9+
action: {name: setSelection}
910
initialState:
1011
documentContents: |-
1112
==================================================

src/test/suite/fixtures/recorded/tutorial/unit-2-basic-coding/bringBlueCapToValueRisk.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: bring blue cap to value risk
5-
action: replaceWithTarget
4+
version: 2
65
targets:
76
- type: primitive
87
mark: {type: decoratedSymbol, symbolColor: blue, character: c}
98
- type: primitive
10-
modifier: {type: containingScope, scopeType: value, includeSiblings: false}
119
mark: {type: decoratedSymbol, symbolColor: default, character: r}
10+
modifiers:
11+
- type: containingScope
12+
scopeType: {type: value}
13+
usePrePhraseSnapshot: false
14+
action: {name: replaceWithTarget}
1215
initialState:
1316
documentContents: |
1417
def print_color(color, invert=False):

src/test/suite/fixtures/recorded/tutorial/unit-2-basic-coding/bringStateUrge.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: bring state urge
5-
action: replaceWithTarget
4+
version: 2
65
targets:
76
- type: primitive
8-
modifier: {type: containingScope, scopeType: statement, includeSiblings: false}
97
mark: {type: decoratedSymbol, symbolColor: default, character: u}
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: statement}
1011
- {type: primitive, isImplicit: true}
12+
usePrePhraseSnapshot: false
13+
action: {name: replaceWithTarget}
1114
initialState:
1215
documentContents: |
1316
def print_color(color, invert=False):

src/test/suite/fixtures/recorded/tutorial/unit-2-basic-coding/chuckArgueBlueVest.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
languageId: python
22
command:
3-
version: 1
43
spokenForm: chuck argue blue vest
5-
action: remove
4+
version: 2
65
targets:
76
- type: primitive
8-
modifier: {type: containingScope, scopeType: argumentOrParameter, includeSiblings: false}
97
mark: {type: decoratedSymbol, symbolColor: blue, character: v}
8+
modifiers:
9+
- type: containingScope
10+
scopeType: {type: argumentOrParameter}
11+
usePrePhraseSnapshot: false
12+
action: {name: remove}
1013
initialState:
1114
documentContents: |
1215
def print_color(color, invert=False):

0 commit comments

Comments
 (0)