dictation_mode.talon (2280B)
1 mode: dictation 2 - 3 ^press <user.keys>$: key("{keys}") 4 5 # Everything here should call auto_insert to preserve the state to correctly auto-capitalize/auto-space. 6 <user.prose>: auto_insert(prose) 7 new line: "\n" 8 new paragraph: "\n\n" 9 cap <user.word>: 10 result = user.formatted_text(word, "CAPITALIZE_FIRST_WORD") 11 auto_insert(result) 12 13 # Navigation 14 go up <number_small> (line|lines): 15 edit.up() 16 repeat(number_small - 1) 17 go down <number_small> (line|lines): 18 edit.down() 19 repeat(number_small - 1) 20 go left <number_small> (word|words): 21 edit.word_left() 22 repeat(number_small - 1) 23 go right <number_small> (word|words): 24 edit.word_right() 25 repeat(number_small - 1) 26 go line start: edit.line_start() 27 go line end: edit.line_end() 28 29 # Selection 30 select left <number_small> (word|words): 31 edit.extend_word_left() 32 repeat(number_small - 1) 33 select right <number_small> (word|words): 34 edit.extend_word_right() 35 repeat(number_small - 1) 36 select left <number_small> (character|characters): 37 edit.extend_left() 38 repeat(number_small - 1) 39 select right <number_small> (character|characters): 40 edit.extend_right() 41 repeat(number_small - 1) 42 clear left <number_small> (word|words): 43 edit.extend_word_left() 44 repeat(number_small - 1) 45 edit.delete() 46 clear right <number_small> (word|words): 47 edit.extend_word_right() 48 repeat(number_small - 1) 49 edit.delete() 50 clear left <number_small> (character|characters): 51 edit.extend_left() 52 repeat(number_small - 1) 53 edit.delete() 54 clear right <number_small> (character|characters): 55 edit.extend_right() 56 repeat(number_small - 1) 57 edit.delete() 58 59 # Formatting 60 formatted <user.format_text>: 61 user.dictation_insert_raw(format_text) 62 ^format selection <user.formatters>$: 63 user.formatters_reformat_selection(formatters) 64 65 # Corrections 66 scratch that: user.clear_last_phrase() 67 scratch selection: edit.delete() 68 select that: user.select_last_phrase() 69 spell that <user.letters>: auto_insert(letters) 70 spell that <user.formatters> <user.letters>: 71 result = user.formatted_text(letters, formatters) 72 user.auto_format_pause() 73 auto_insert(result) 74 user.auto_format_resume() 75 76 # Escape, type things that would otherwise be commands 77 ^escape <user.text>$: 78 auto_insert(user.text)