init commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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
|
||||
"""
|
||||
|
||||
|
||||
@ctx.action_class("user")
|
||||
class UserActions:
|
||||
def tab_close_wrapper():
|
||||
actions.sleep("180ms")
|
||||
actions.app.tab_close()
|
||||
|
||||
def command_search(command: str = ""):
|
||||
actions.key("cmd-l")
|
||||
if command != "":
|
||||
actions.sleep("200ms")
|
||||
actions.insert(command)
|
||||
|
||||
|
||||
@ctx.action_class("browser")
|
||||
class BrowserActions:
|
||||
def show_extensions():
|
||||
actions.app.tab_open()
|
||||
actions.browser.go("arc://extensions")
|
||||
@@ -0,0 +1,6 @@
|
||||
app: arc
|
||||
os: mac
|
||||
-
|
||||
tag(): browser
|
||||
tag(): user.tabs
|
||||
tag(): user.command_search
|
||||
@@ -0,0 +1,8 @@
|
||||
user.running: arc
|
||||
os: mac
|
||||
-
|
||||
# This assumes that you have not disabled Little Arc
|
||||
little arc [<user.text>]:
|
||||
key("cmd-alt-n")
|
||||
sleep(200ms)
|
||||
insert(user.text or "")
|
||||
Reference in New Issue
Block a user