mode: dictation - ^press $: key("{keys}") # Everything here should call auto_insert to preserve the state to correctly auto-capitalize/auto-space. : auto_insert(prose) new line: "\n" new paragraph: "\n\n" cap : result = user.formatted_text(word, "CAPITALIZE_FIRST_WORD") auto_insert(result) # Navigation go up (line|lines): edit.up() repeat(number_small - 1) go down (line|lines): edit.down() repeat(number_small - 1) go left (word|words): edit.word_left() repeat(number_small - 1) go right (word|words): edit.word_right() repeat(number_small - 1) go line start: edit.line_start() go line end: edit.line_end() # Selection select left (word|words): edit.extend_word_left() repeat(number_small - 1) select right (word|words): edit.extend_word_right() repeat(number_small - 1) select left (character|characters): edit.extend_left() repeat(number_small - 1) select right (character|characters): edit.extend_right() repeat(number_small - 1) clear left (word|words): edit.extend_word_left() repeat(number_small - 1) edit.delete() clear right (word|words): edit.extend_word_right() repeat(number_small - 1) edit.delete() clear left (character|characters): edit.extend_left() repeat(number_small - 1) edit.delete() clear right (character|characters): edit.extend_right() repeat(number_small - 1) edit.delete() # Formatting formatted : user.dictation_insert_raw(format_text) ^format selection $: user.formatters_reformat_selection(formatters) # Corrections scratch that: user.clear_last_phrase() scratch selection: edit.delete() select that: user.select_last_phrase() spell that : auto_insert(letters) spell that : result = user.formatted_text(letters, formatters) user.auto_format_pause() auto_insert(result) user.auto_format_resume() # Escape, type things that would otherwise be commands ^escape $: auto_insert(user.text) numb : "{number_string}" numb (dot | point) : "{number_string}.{digit_string}" ^commander$: mode.disable("sleep") mode.disable("dictation") mode.enable("command")