Skip to content

Commit

Permalink
Disable Cursorless for vscode file dialogs (#2749)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AndreasArvidsson and phillco authored Jan 25, 2025
1 parent 0943c06 commit 181cd9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cursorless-talon/src/apps/cursorless_vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

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

ctx.tags = ["user.cursorless"]
Expand Down

0 comments on commit 181cd9f

Please sign in to comment.