dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

draft_window.talon (1553B)


      1 # These are active when we have focus on the draft window
      2 title:Talon Draft
      3 -
      4 settings():
      5   # Enable 'Smart dictation mode', see https://github.com/knausj85/knausj_talon/pull/356
      6   user.context_sensitive_dictation = 1
      7 
      8 # Replace a single word with a phrase
      9 replace <user.draft_anchor> with <user.text>:
     10   user.draft_select("{draft_anchor}")
     11   result = user.formatted_text(text, "NOOP")
     12   insert(result)
     13 
     14 # Position cursor before word
     15 cursor <user.draft_anchor>:
     16   user.draft_position_caret("{draft_anchor}")
     17 
     18 cursor before <user.draft_anchor>:
     19   user.draft_position_caret("{draft_anchor}")
     20 
     21 # Position cursor after word
     22 cursor after <user.draft_anchor>:
     23   user.draft_position_caret("{draft_anchor}", 1)
     24 
     25 # Select a whole word
     26 select <user.draft_anchor>:
     27   user.draft_select("{draft_anchor}")
     28 
     29 # Select a range of words
     30 select <user.draft_anchor> through <user.draft_anchor>:
     31   user.draft_select("{draft_anchor_1}", "{draft_anchor_2}")
     32 
     33 # Delete a word
     34 clear <user.draft_anchor>:
     35   user.draft_select("{draft_anchor}", "", 1)
     36   key(backspace)
     37 
     38 # Delete a range of words
     39 clear <user.draft_anchor> through <user.draft_anchor>:
     40   user.draft_select(draft_anchor_1, draft_anchor_2, 1)
     41   key(backspace)
     42 
     43 # reformat word
     44 <user.formatters> word <user.draft_anchor>:
     45   user.draft_select("{draft_anchor}", "", 1)
     46   user.formatters_reformat_selection(user.formatters)
     47 
     48 # reformat range
     49 <user.formatters> <user.draft_anchor> through <user.draft_anchor>:
     50     user.draft_select(draft_anchor_1, draft_anchor_2, 1)
     51     user.formatters_reformat_selection(user.formatters)