Skip to content

Commit

Permalink
Add file save action via command pallete to vscode (talonhub#1676)
Browse files Browse the repository at this point in the history
Currently it uses the default ctrl+s, which is fine for a default setup
but messes up if, for example, you use the vim extension.

Not including the save command directly seems like an oversight,
especially since the save_all command is right there

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jeff Knaus <[email protected]>
  • Loading branch information
3 people authored Jan 12, 2025
1 parent d79b051 commit 0f08fb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/vscode/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def indent_less():
def save_all():
actions.user.vscode("workbench.action.files.saveAll")

def save():
actions.user.vscode("workbench.action.files.save")

def find_next():
actions.user.vscode("editor.action.nextMatchFindAction")

Expand Down

0 comments on commit 0f08fb8

Please sign in to comment.