-
-
Notifications
You must be signed in to change notification settings - Fork 88
Cursorless tutorial units 1 & 2 #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f1338f9
Cursorless tutorial
pokey 31ac5c5
remove elipses
pokey 6681822
Merge main and move tutorial to its own package
pokey 61198dd
Merge branch 'main' into cursorless-tutorial
pokey 6874c8e
Revert engine change
pokey 0f509f1
tweaks
pokey 509f76c
tweak actions impl; fix CI
pokey 6131fe9
remove stuff
pokey eff9d83
PR feedback
pokey 004a4fe
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 2d9e3bc
Merge branch 'main' into cursorless-tutorial
pokey 939b33a
Add previous / next buttons
pokey af7d1b5
Add step count
pokey 5b34646
unit-1 => tutorial-1
pokey d8dd05f
Remove highlights when prereqs not met
pokey 0ab95a7
doc string
pokey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
def get_tutorial_entries(): | ||
return [ | ||
{ | ||
"id": "start_tutorial", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "cursorless tutorial", | ||
"description": "Start the introductory Cursorless tutorial", | ||
}, | ||
], | ||
}, | ||
{ | ||
"id": "tutorial_next", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "tutorial next", | ||
"description": "Advance to next step in tutorial", | ||
}, | ||
], | ||
}, | ||
{ | ||
"id": "tutorial_previous", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "tutorial previous", | ||
"description": "Go back to previous step in tutorial", | ||
}, | ||
], | ||
}, | ||
{ | ||
"id": "tutorial_restart", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "tutorial restart", | ||
"description": "Restart the tutorial", | ||
}, | ||
], | ||
}, | ||
{ | ||
"id": "tutorial_resume", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "tutorial resume", | ||
"description": "Resume the tutorial", | ||
}, | ||
], | ||
}, | ||
{ | ||
"id": "tutorial_list", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "tutorial list", | ||
"description": "List all available tutorials", | ||
}, | ||
], | ||
}, | ||
{ | ||
"id": "tutorial_close", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "tutorial close", | ||
"description": "Close the tutorial", | ||
}, | ||
], | ||
}, | ||
{ | ||
"id": "tutorial_start_by_number", | ||
"type": "command", | ||
"variations": [ | ||
{ | ||
"spokenForm": "tutorial <number>", | ||
"description": "Start a specific tutorial by number", | ||
}, | ||
], | ||
}, | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
data/fixtures/recorded/tutorial/tutorial-1-basics/changeSit.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
languageId: plaintext | ||
command: | ||
version: 7 | ||
spokenForm: change sit | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: i} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
Welcome Cursorless! | ||
|
||
Notice the hats above each word in this sentence. | ||
selections: | ||
- anchor: {line: 2, character: 15} | ||
active: {line: 2, character: 15} | ||
marks: | ||
default.i: | ||
start: {line: 2, character: 32} | ||
end: {line: 2, character: 34} | ||
finalState: | ||
documentContents: | | ||
Welcome Cursorless! | ||
|
||
Notice the hats above each word this sentence. | ||
selections: | ||
- anchor: {line: 2, character: 32} | ||
active: {line: 2, character: 32} |
39 changes: 39 additions & 0 deletions
39
data/fixtures/recorded/tutorial/tutorial-1-basics/chuckLineOdd.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: plaintext | ||
command: | ||
version: 7 | ||
spokenForm: chuck line odd | ||
action: | ||
name: remove | ||
target: | ||
type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: o} | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: line} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
Welcome Cursorless! | ||
|
||
Notice the hats above each word in this sentence. | ||
|
||
Now, see the sidebar. | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 6} | ||
- anchor: {line: 2, character: 35} | ||
active: {line: 2, character: 39} | ||
marks: | ||
default.o: | ||
start: {line: 4, character: 0} | ||
end: {line: 4, character: 3} | ||
finalState: | ||
documentContents: | | ||
Welcome Cursorless! | ||
|
||
Notice the hats above each word in this sentence. | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 6} | ||
- anchor: {line: 2, character: 35} | ||
active: {line: 2, character: 39} |
38 changes: 38 additions & 0 deletions
38
data/fixtures/recorded/tutorial/tutorial-1-basics/chuckTrap.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
languageId: plaintext | ||
command: | ||
version: 7 | ||
spokenForm: chuck trap | ||
action: | ||
name: remove | ||
target: | ||
type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: t} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
Welcome to Cursorless! | ||
|
||
Notice the hats above each word in this sentence. | ||
|
||
Now, see the sidebar. | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 6} | ||
- anchor: {line: 2, character: 35} | ||
active: {line: 2, character: 39} | ||
marks: | ||
default.t: | ||
start: {line: 0, character: 8} | ||
end: {line: 0, character: 10} | ||
finalState: | ||
documentContents: |- | ||
Welcome Cursorless! | ||
|
||
Notice the hats above each word in this sentence. | ||
|
||
Now, see the sidebar. | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 6} | ||
- anchor: {line: 2, character: 35} | ||
active: {line: 2, character: 39} |
30 changes: 30 additions & 0 deletions
30
data/fixtures/recorded/tutorial/tutorial-1-basics/postAir.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
languageId: plaintext | ||
command: | ||
version: 7 | ||
spokenForm: post air | ||
action: | ||
name: setSelectionAfter | ||
target: | ||
type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: a} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
Welcome Cursorless! | ||
|
||
Notice the hats above each word in this sentence. | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 8} | ||
marks: | ||
default.a: | ||
start: {line: 2, character: 11} | ||
end: {line: 2, character: 15} | ||
finalState: | ||
documentContents: | | ||
Welcome Cursorless! | ||
|
||
Notice the hats above each word in this sentence. | ||
selections: | ||
- anchor: {line: 2, character: 15} | ||
active: {line: 2, character: 15} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.