Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vscode terminal helper #1395

Merged
merged 13 commits into from
Jun 3, 2024
Merged
8 changes: 8 additions & 0 deletions apps/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ It is recommended to install the [VSCode talon extension pack](https://marketpla
## Cursorless

If you'd like to use Cursorless, follow the instructions in the [cursorless-talon repo](https://github.com/pokey/cursorless-talon).

## Terminal

By default the VSCode terminal is not going to recognize terminal commands from talon. In order for talon to configure terminal commands in VSCode the window has to include a word that it can use to match. This is possible using the VSCode setting to include word terminal in the title. You can do this with this setting in VSCode:
jaresty marked this conversation as resolved.
Show resolved Hide resolved

```
"window.title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}${appName}${separator}focus:[${focusedView}]",
```
jaresty marked this conversation as resolved.
Show resolved Hide resolved
7 changes: 7 additions & 0 deletions apps/vscode/vscode_terminal.talon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app: vscode
# Treat the VSCode terminal as a terminal. This relies on VSCode to include the word terminal in the window title.
# Add this setting to your settings:
# "window.title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}${appName}${separator}focus:[${focusedView}]",
jaresty marked this conversation as resolved.
Show resolved Hide resolved
win.title: /focus:\[Terminal\]/
-
tag(): terminal