stata
The community/apps/stata
directory contains files that add support for the Stata application in Talon.
stata.py
defines the application and provides a way to set the language for code contexts. It defines the stata
application using mod.apps.stata
by matching the application name and executable on Windows. It also defines a code
action that returns the language "stata".
stata_do_file_editor.talon
defines Talon commands specific to the Stata Do-file editor. These commands use the win.title
to match the Do-file editor window. The commands include do this
, do line
, do (all | file)
, do way up
, and do way down
, all of which execute the selected or edited text by sending the ctrl-d
hotkey to Stata. These commands rely on standard Talon commands like edit.select_line()
, edit.select_all()
, edit.copy()
, edit.extend_file_start()
, and edit.extend_file_end()
.