init commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from talon import Context, Module, actions
|
||||
|
||||
mod = Module()
|
||||
|
||||
|
||||
@mod.action_class
|
||||
class Actions:
|
||||
def choose(number_small: int):
|
||||
"""Choose the nth item"""
|
||||
actions.key(f"down:{number_small-1} enter")
|
||||
|
||||
def choose_up(number_small: int):
|
||||
"""Choose the nth item up"""
|
||||
actions.key(f"up:{number_small} enter")
|
||||
@@ -0,0 +1,3 @@
|
||||
# pick item from a dropdown
|
||||
choose <number_small>: user.choose(number_small)
|
||||
choose up <number_small>: user.choose_up(number_small)
|
||||
Reference in New Issue
Block a user