S or /

voice_control / dictation.talon

1# Dictation2-3type <phrase> | literal <phrase> | say <phrase>:4    # help: Type the phrase5    dictate.phrase(phrase)67insert [today's] date:8    # help: Insert today's date9    # TODO: make date format a setting? or use locale?10    date = time.now()11    s = time.format(date, "%b %d, %Y")12    auto_insert(s)1314space key:15    # help: Press the space key16    key(space)1718press [the] [combo] <key> key [[repeated] <number_small> [times]]:19    # help: Press the key(s)20    number_small = number_small or 121    key(key)22    repeat(number_small - 1)2324enter that:25    # help: Press the return/enter key26    key(enter)2728spell {letter}+:29    # help: Type the dictated letters30    for l in letter_list: insert(l)3132command mode:33    # help: Enable command mode. Use "type", "literal", or "say" to dictate text.34    mode.disable("dictation")35    mode.enable("command")36dictation mode:37    # help: Enables dictation mode. In dictation mode, anything you say that is not a command is interpreted as text to type.38    mode.enable("dictation")3940select last dictation: dictate.select_last()41correct last dictation: correct.last()