29 lines
495 B
Python
29 lines
495 B
Python
from talon import Context, Module, actions
|
|
|
|
ctx = Context()
|
|
mod = Module()
|
|
|
|
mod.apps.iterm2 = """
|
|
os: mac
|
|
and app.bundle: com.googlecode.iterm2
|
|
"""
|
|
ctx.matches = r"""
|
|
app: iterm2
|
|
"""
|
|
|
|
directories_to_remap = {}
|
|
directories_to_exclude = {}
|
|
|
|
|
|
@ctx.action_class("user")
|
|
class UserActions:
|
|
def tab_jump(number: int):
|
|
actions.key(f"cmd-{number}")
|
|
|
|
def tab_final():
|
|
actions.key("cmd-9")
|
|
|
|
def terminal_clear_screen():
|
|
"""Clear screen"""
|
|
actions.key("ctrl-l")
|