Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lang/python/code_common_function.talon-list
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ set
split
string: "str"
update

# Talon Python functions
app notify: actions.app.notify
clip set text: actions.clip.set_text
clip text: actions.clip.text
cron after: cron.after
cron cancel: cron.cancel
cron interval: cron.interval
eff es watch: fs.watch
fs watch: fs.watch
settings get: "settings.get"
15 changes: 9 additions & 6 deletions lang/talon/talon_common.talon
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@ code.language: talon
code.language: python
and tag: user.talon_python
-
#commands for dictating key combos
key <user.keys> over: "{keys}"
key <user.modifiers> over: "{modifiers}"

# the variant using the optional user.talon_tags requires user.talon_populate_lists tag. do not use with dragon
tag set [{user.talon_tags}]:
tag = talon_tags or ""
user.talon_code_enable_tag(tag)

# requires user.talon_populate_lists tag. do not use with dragon
# the following commands require user.talon_populate_lists tag. do not use with dragon
list {user.talon_lists}: "{{{talon_lists}}}"
# requires user.talon_populate_lists tag. do not use with dragon

capture {user.talon_captures}: "<{talon_captures}>"

setting {user.talon_settings}: user.talon_code_enable_setting(talon_settings)

#commands for dictating key combos
key <user.keys> over: "{keys}"
key <user.modifiers> over: "{modifiers}"
action {user.talon_actions}: user.talon_code_insert_action_call(talon_actions, "")

action {user.talon_actions}:
action wrap {user.talon_actions}:
user.talon_code_insert_action_call(talon_actions, edit.selected_text())
11 changes: 11 additions & 0 deletions lang/talon/talon_with_conformer.talon
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# enables the user.talon_populate_lists tag with conformer
# for TalonScript and Talon Python
# dragon cannot handle the resulting grammar complexity
code.language: talon
and speech.engine: wav2letter
code.language: python
and tag: user.talon_python
and speech.engine: wav2letter
-

tag(): user.talon_populate_lists