Add smart auto-submit feature#229
Conversation
|
Thanks for this, @siebertm - the feature is well designed and the tests are thorough. We'd like to merge this, but it has conflicts with main now (new per-recording CLI overrides landed recently, and the file-based IPC was refactored into generic Could you rebase onto main? The conflicts are in |
0aa2ae5 to
4b47b26
Compare
Say "submit" at the end of dictation to automatically press Enter. Detects trigger words like "submit", "send", and "enter" at the end of transcribed text, strips them, and simulates an Enter keypress. - Config: [text] smart_auto_submit = true - Env: VOXTYPE_SMART_AUTO_SUBMIT=true - CLI: --smart-auto-submit / --no-smart-auto-submit (daemon and per-recording) - Pre-compiled regex for trigger detection - Strips trailing connector punctuation after trigger removal
4b47b26 to
fc3731a
Compare
|
@peteonrails this is done. squashed and signed the commit also to make the process happy :D |
Description
Say "submit" at the end of dictation to strip the word and press Enter, like
auto_submitbut triggered by voice rather than permanently on.text.smart_auto_submit(default false),VOXTYPE_SMART_AUTO_SUBMITenv var--smart-auto-submit/--no-smart-auto-submiton record start/toggleType of Change
Testing
cargo testand all tests passcargo clippywith no warningscargo fmt(it shows formatting errors on unrelated code)Documentation
Additional Notes
I am no Rust developer. This was vibe-codeed using Claude Code. I have tested the functionality myself. Feel free to just close the PR or tell me what to change!