from talon import ctrl, ui, Module, Context, actions, clip, app

ctx = Context()
mod = Module()
apps = mod.apps
apps.xcode = """
os: mac
and app.name: Xcode
"""
ctx.matches = r"""
app: xcode
"""

@ctx.action_class("edit")
class edit_actions:
    def jump_line(n: int):
        actions.key("cmd-l")
        actions.sleep("100ms")
        actions.insert(str(n))
        actions.key("enter")

from talon import ctrl, ui, Module, Context, actions, clip, app

ctx = Context()
mod = Module()
apps = mod.apps
apps.xcode = """
os: mac
and app.name: Xcode
"""
ctx.matches = r"""
app: xcode
"""

@ctx.action_class("edit")
class edit_actions:
    def jump_line(n: int):
        actions.key("cmd-l")
        actions.sleep("100ms")
        actions.insert(str(n))
        actions.key("enter")

os: mac and app.name: Xcode app: xcode