menu_choose
The community/core/menu_choose
directory provides functionality for selecting items from menus using voice commands.
The core logic is in menu_choose.py
, which defines two actions:
* choose(number_small: int)
: This action moves down the menu the specified number of times (minus one) and then presses enter.
* choose_up(number_small: int)
: This action moves up the menu the specified number of times and then presses enter.
menu_choose.talon
defines the voice commands that trigger the actions:
* choose <number_small>
: Executes the user.choose(number_small)
action, selecting the nth item in the menu.
* choose up <number_small>
: Executes the user.choose_up(number_small)
action, selecting the nth item counting from the bottom of the menu.
Together, these files allow a user to navigate and select items from menus using simple voice commands.