Skip to content

batch

The community/lang/batch directory contains files to support the Batch scripting language in Talon.

The batch.py file (https://github.com/talonhub/community/blob/main/lang/batch/batch.py) defines a Talon context for the Batch language. It specifies that when the code language is set to "batch", the code_comment_line_prefix action should insert "REM ".

The batch.talon file (https://github.com/talonhub/community/blob/main/lang/batch/batch.talon) defines a set of voice commands for working with Batch files. It defines a user.code_comment_line tag, a number of commonly used keywords and commands with shortcuts such as soft exit, hard exit, echo, call, if error and go to, and a way to insert an argument via <number_small>.