talon
The community/apps/talon
directory contains applications that provide additional functionality when interacting with Talon.
The talon_repl
subdirectory provides functionality for interacting with the Talon REPL (Read-Eval-Print Loop). The talon_repl.py
file defines a Talon application that is matched when a window title contains either "Talon - REPL" or ".talon/bin/repl". This file also sets the code language to Python for this application. The talon_repl.talon
file defines voice commands available within the talon_repl
application, and adds the tags user.talon_python
and user.readline
. Notably, it includes a number of debugging commands that can be used to inspect the state of the Talon runtime, such as commands to print details about Talon actions, lists, tags, settings, modes, scopes, running apps, and windows. These commands use the sim
command to send commands to the REPL and the user.talon_pretty_print
action to format the output.
The talon_debug_window
subdirectory contains files that enable specific functionality within the Talon debug window. The talon_debug_window.py
file defines a Talon application that is matched by the title "Talon Debug". This allows Talon to understand when the debug window is active, so that the commands defined in talon_debug_window.talon
can be used. The talon_debug_window.talon
file defines voice commands that are specifically available when the Talon debug window is in focus. These commands enable dictation of key combinations and interaction with various Talon internal structures, including actions, lists, captures, settings, and applications. This file also refers to the user.talon_populate_lists
tag, which populates lists related to Talon internals. This tag is disabled by default, because of performance concerns.