Skip to content

Commit bbc33e0

Browse files
authored
Cursorless scope side bar (#1942)
- Depends on #1941 - Depends on #1946 ## Checklist - [-] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) (see comment below) - [x] Add descriptions to section headings (eg present, not present, etc) - [x] File issue about using lang icons for lang-specific scopes - [x] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [x] I have not broken the cheatsheet - [x] File issue for showing scopes touching, as well as equal to, selection - [x] Checkboxes from original #1663
1 parent 974b4a2 commit bbc33e0

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

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.key("right")
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+
)

src/cheatsheet/sections/get_scope_visualizer.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,14 @@ def get_scope_visualizer():
2424
],
2525
],
2626
},
27+
{
28+
"id": "show_scope_sidebar",
29+
"type": "command",
30+
"variations": [
31+
{
32+
"spokenForm": "bar cursorless",
33+
"description": "Show cursorless sidebar",
34+
},
35+
],
36+
},
2737
]

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-specific settings in ide"""

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()

0 commit comments

Comments
 (0)