Skip to content

Commit 3b7e5d3

Browse files
committed
Add sidebar view
1 parent ba1abc5 commit 3b7e5d3

File tree

6 files changed

+37
-2
lines changed

6 files changed

+37
-2
lines changed

cursorless-talon/src/apps/cursorless_vscode.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ def private_cursorless_show_settings_in_ide():
3232
)
3333
actions.sleep("250ms")
3434
actions.insert("cursorless")
35+
36+
def private_cursorless_show_sidebar():
37+
"""Show Cursorless sidebar"""
38+
actions.user.private_cursorless_run_rpc_command_and_wait(
39+
"workbench.view.extension.cursorless"
40+
)

cursorless-talon/src/cursorless.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212
class Actions:
1313
def private_cursorless_show_settings_in_ide():
1414
"""Show Cursorless-specific settings in ide"""
15+
16+
def private_cursorless_show_sidebar():
17+
"""Show Cursorless sidebar"""

cursorless-talon/src/cursorless.talon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ tag: user.cursorless
4040

4141
{user.cursorless_homophone} settings:
4242
user.private_cursorless_show_settings_in_ide()
43+
44+
bar {user.cursorless_homophone}:
45+
user.private_cursorless_show_sidebar()

images/icon.svg

Lines changed: 13 additions & 0 deletions
Loading

packages/cursorless-vscode/package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
},
8080
"contributes": {
8181
"views": {
82-
"explorer": [
82+
"cursorless": [
8383
{
8484
"id": "cursorlessScopeSupport",
85-
"name": "Cursorless scope support"
85+
"name": "Scope support"
8686
}
8787
]
8888
},
@@ -1039,6 +1039,15 @@
10391039
"fontCharacter": "\\E900"
10401040
}
10411041
}
1042+
},
1043+
"viewsContainers": {
1044+
"activitybar": [
1045+
{
1046+
"id": "cursorless",
1047+
"title": "Cursorless",
1048+
"icon": "images/icon.svg"
1049+
}
1050+
]
10421051
}
10431052
},
10441053
"sponsor": {

packages/cursorless-vscode/src/scripts/populateDist/assets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const assets: Asset[] = [
2525
},
2626
{ source: "../../images/hats", destination: "images/hats" },
2727
{ source: "../../images/icon.png", destination: "images/icon.png" },
28+
{ source: "../../images/icon.svg", destination: "images/icon.svg" },
2829
{ source: "../../schemas", destination: "schemas" },
2930
{
3031
source: "../../third-party-licenses.csv",

0 commit comments

Comments
 (0)