init commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
from talon import Context, Module, actions
|
||||
|
||||
mod = Module()
|
||||
|
||||
mod.apps.warp = """
|
||||
os: mac
|
||||
and app.bundle: dev.warp.Warp-Stable
|
||||
"""
|
||||
|
||||
ctx = Context()
|
||||
ctx.matches = r"""
|
||||
app: warp
|
||||
"""
|
||||
|
||||
|
||||
@ctx.action_class("user")
|
||||
class UserActions:
|
||||
def tab_jump(number: int):
|
||||
if number < 9:
|
||||
actions.key(f"cmd-{number}")
|
||||
|
||||
def tab_final():
|
||||
actions.key("cmd-9")
|
||||
|
||||
|
||||
@ctx.action_class("edit")
|
||||
class EditActions:
|
||||
def word_left():
|
||||
actions.key("alt-left")
|
||||
|
||||
def word_right():
|
||||
actions.key("alt-right")
|
||||
@@ -0,0 +1,9 @@
|
||||
app: warp
|
||||
-
|
||||
tag(): terminal
|
||||
tag(): user.generic_unix_shell
|
||||
tag(): user.git
|
||||
tag(): user.kubectl
|
||||
tag(): user.tabs
|
||||
tag(): user.file_manager
|
||||
tag(): user.readline
|
||||
Reference in New Issue
Block a user