Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d26d57a

Browse files
committedJul 16, 2024·
Cursorless tutorial
1 parent a2e4a61 commit d26d57a

File tree

81 files changed

+3501
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3501
-31
lines changed
 

‎.vscode/tasks.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
},
3333
"group": "build"
3434
},
35+
{
36+
"label": "Build tutorial webview",
37+
"type": "npm",
38+
"script": "build:dev",
39+
"path": "packages/cursorless-vscode-tutorial-webview",
40+
"presentation": {
41+
"reveal": "silent"
42+
},
43+
"group": "build"
44+
},
3545
{
3646
"label": "Build test harness",
3747
"type": "npm",
@@ -57,6 +67,7 @@
5767
"type": "npm",
5868
"script": "populate-dist",
5969
"path": "packages/cursorless-vscode",
70+
"dependsOn": ["Build tutorial webview"],
6071
"presentation": {
6172
"reveal": "silent"
6273
},
@@ -103,6 +114,17 @@
103114
"dependsOn": ["Watch esbuild", "Watch typescript"],
104115
"group": "build"
105116
},
117+
{
118+
"label": "watch tutorial",
119+
"type": "npm",
120+
"script": "watch:tailwind",
121+
"isBackground": true,
122+
"presentation": {
123+
"reveal": "never"
124+
},
125+
"path": "packages/cursorless-vscode-tutorial-webview",
126+
"group": "build"
127+
},
106128
{
107129
"type": "npm",
108130
"script": "watch:esbuild",

‎cursorless-talon/src/cheatsheet/cheat_sheet.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .sections.modifiers import get_modifiers
1212
from .sections.scopes import get_scopes
1313
from .sections.special_marks import get_special_marks
14+
from .sections.tutorial import get_tutorial_entries
1415

1516
mod = Module()
1617
ctx = Context()
@@ -37,6 +38,7 @@ def private_cursorless_cheat_sheet_update_json():
3738

3839
def private_cursorless_open_instructions():
3940
"""Open web page with cursorless instructions"""
41+
actions.user.private_cursorless_notify_docs_opened()
4042
webbrowser.open(instructions_url)
4143

4244

@@ -150,5 +152,10 @@ def cursorless_cheat_sheet_get_json():
150152
"id": "shapes",
151153
"items": get_list("hat_shape", "hatShape"),
152154
},
155+
{
156+
"name": "Tutorial",
157+
"id": "tutorial",
158+
"items": get_tutorial_entries(),
159+
},
153160
]
154161
}

0 commit comments

Comments
 (0)
Please sign in to comment.