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

Adds basic support for the Arc web browser #1326

Merged
merged 17 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from 8 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
35 changes: 35 additions & 0 deletions apps/arc/arc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from talon import Context, Module, actions, app

ctx = Context()
mod = Module()

mod.apps.arc = "app.name: Arc"
mod.apps.arc = """
os: mac
app.bundle: company.thebrowser.Browser

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


@mod.action_class
class Actions:
def command_palette():
"""Show command palette"""
actions.key("cmd-l")


@ctx.action_class("user")
class UserActions:
def tab_close_wrapper():
actions.sleep("180ms")
actions.app.tab_close()


@ctx.action_class("browser")
class BrowserActions:
def show_extensions():
actions.app.tab_open()
actions.browser.go("arc://extensions")
8 changes: 8 additions & 0 deletions apps/arc/arc.talon
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
app: arc
-
tag(): browser
tag(): user.tabs

please [<user.text>]:
user.command_palette()
insert(user.text or "")
6 changes: 6 additions & 0 deletions apps/arc/little-arc.talon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
user.running: arc
-
little arc [<user.text>]:
jaresty marked this conversation as resolved.
Show resolved Hide resolved
key("cmd-alt-n")
sleep(200ms)
insert(user.text or "")