talonvoice / talon

Issue Tracker for the main Talon app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature request: define and use constants in a talon file that can be used by multiple commands

jmegner opened this issue · comments

I would like to be able to define and use constants in a talon file that can be used by multiple commands in that talon file.

For instance, I was creating commands to open particular files in particular vscode projects, so I wanted to be able to do something like this:

talon = "talon-config-jme"
ktcalc = "KillTeam2021Calculator"

coder talon: user.vscode_focus(talon)
coder additional words: user.vscode_focus(talon, "settings/additional_words.csv")
coder words to replace: user.vscode_focus(talon, "settings/words_to_replace.csv")
# and more for talon project...
coder calc shoot: user.vscode_focus(ktcalc, "src/engine/Shoot.ts")
coder calc fight: user.vscode_focus(ktcalc, "src/engine/Fight.ts")
# and more for ktcalc...