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 cursorless support for jetbrains #1628

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/jetbrains/jetbrains.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
import os.path
import tempfile
Expand Down Expand Up @@ -143,7 +144,8 @@ def idea(commands: str):
send_idea_command(cmd.strip())
actions.sleep(0.1)
except Exception as e:
app.notify(e)
app.notify(repr(e))
logging.warning("send_idea_command error at %s", "idea", exc_info=e)
raise

def idea_grab(times: int):
Expand Down
2 changes: 2 additions & 0 deletions apps/jetbrains/jetbrains.talon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ tag(): user.multiple_cursors
tag(): user.splits
tag(): user.tabs
tag(): user.command_search
tag(): user.cursorless

# multiple_cursors.py support end

# Auto complete
Expand Down
15 changes: 15 additions & 0 deletions apps/vscode/command_client/jetbrains.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from talon import Context

ctx = Context()

ctx.matches = r"""
app: jetbrains
"""

ctx.tags = ["user.command_client"]


@ctx.action_class("user")
class JetbrainsActions:
def command_server_directory() -> str:
return "jetbrains-command-server"