Skip to content

Commit 181cd9f

Browse files
Disable Cursorless for vscode file dialogs (#2749)
File dialogs interfere with the command server keypress. Commands like `"paste to line"` just ends up with a timeout error in the talon log and nothing happens. I have been running with this in my own fork of cursorless Talon for a while to test it out and I'm happy with the result. ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] 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) - [/] I have not broken the cheatsheet --------- Co-authored-by: Phil Cohen <phillip@phillip.io>
1 parent 0943c06 commit 181cd9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cursorless-talon/src/apps/cursorless_vscode.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
ctx.matches = r"""
66
app: vscode
7+
# Disable Cursorless when VS Code is displaying a native OS dialog during which the command server
8+
# hotkey will not work.
9+
not win.title: /^(Open Folder|Open File|Save As|Open Workspace from File|Add Folder to Workspace|Save Workspace)$/i
710
"""
811

912
ctx.tags = ["user.cursorless"]

0 commit comments

Comments
 (0)