diff --git a/src/apps/cursorless_vscode.py b/src/apps/cursorless_vscode.py index 1f6e43fe..0956c89d 100644 --- a/src/apps/cursorless_vscode.py +++ b/src/apps/cursorless_vscode.py @@ -32,3 +32,9 @@ def private_cursorless_show_settings_in_ide(): ) actions.sleep("250ms") actions.key("right") + + def private_cursorless_show_sidebar(): + """Show Cursorless sidebar""" + actions.user.private_cursorless_run_rpc_command_and_wait( + "workbench.view.extension.cursorless" + ) diff --git a/src/cheatsheet/sections/get_scope_visualizer.py b/src/cheatsheet/sections/get_scope_visualizer.py index b7483ae9..69115fbe 100644 --- a/src/cheatsheet/sections/get_scope_visualizer.py +++ b/src/cheatsheet/sections/get_scope_visualizer.py @@ -24,4 +24,14 @@ def get_scope_visualizer(): ], ], }, + { + "id": "show_scope_sidebar", + "type": "command", + "variations": [ + { + "spokenForm": "bar cursorless", + "description": "Show cursorless sidebar", + }, + ], + }, ] diff --git a/src/cursorless.py b/src/cursorless.py index 86147fb1..d6479121 100644 --- a/src/cursorless.py +++ b/src/cursorless.py @@ -12,3 +12,6 @@ class Actions: def private_cursorless_show_settings_in_ide(): """Show Cursorless-specific settings in ide""" + + def private_cursorless_show_sidebar(): + """Show Cursorless-specific settings in ide""" diff --git a/src/cursorless.talon b/src/cursorless.talon index 9b784f68..d2fa383a 100644 --- a/src/cursorless.talon +++ b/src/cursorless.talon @@ -40,3 +40,6 @@ tag: user.cursorless {user.cursorless_homophone} settings: user.private_cursorless_show_settings_in_ide() + +bar {user.cursorless_homophone}: + user.private_cursorless_show_sidebar()