# These are active when we have focus on the draft window title: Talon Draft - settings(): # Enable 'Smart dictation mode', see https://github.com/talonhub/community/pull/356 user.context_sensitive_dictation = true # Replace a single word with a phrase replace with : user.draft_select("{draft_anchor}") result = user.formatted_text(text, "NOOP") insert(result) # Position cursor before word (pre | cursor | cursor before) : user.draft_position_caret("{draft_anchor}") # Position cursor after word (post | cursor after) : user.draft_position_caret("{draft_anchor}", 1) # Select a whole word (take | select) : user.draft_select("{draft_anchor}") # Select a range of words (take | select) (through | past) : user.draft_select("{draft_anchor_1}", "{draft_anchor_2}") # Delete a word (change | chuck | clear) : user.draft_select("{draft_anchor}", "", 1) key(backspace) # Delete a range of words (change | chuck | clear) (through | past) : user.draft_select(draft_anchor_1, draft_anchor_2, 1) key(backspace) # reformat word word : user.draft_select("{draft_anchor}", "", 1) user.formatters_reformat_selection(user.formatters) # reformat range (through | past) : user.draft_select(draft_anchor_1, draft_anchor_2, 1) user.formatters_reformat_selection(user.formatters)