Repository navigation
Paste voxtype dictation instead of typing it - #15490
Open
peteonrails wants to merge 1 commit into
Open
peteonrails wants to merge 1 commit into
peteonrails wants to merge 1 commit into
Conversation
Typing each character through wtype is the slowest part of a long dictation, lets the rest of the text land in another window when focus moves mid-stream, and drops or reorders characters in some CJK transcriptions. Paste puts the whole transcript at the cursor at once. Shift+Insert pastes from the clipboard in every terminal Omarchy ships and in GUI apps, so it works without depending on the Super+V binding. Existing installs switch only when their config is byte for byte one Omarchy shipped (omacom#4088, omacom#5364, omacom#14552, or omacom#4088 after the omacom#5364 pause_media migration). Any edit means someone chose their settings, so that config is left alone. Co-authored-by: Masaki Komagata <16577+komagata@users.noreply.github.com>
|
nice one! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Voxtype types dictation one character at a time through wtype. On a long dictation that's the slowest part of the pipeline, and two open PRs work around side effects of it:
follow_mousebecause focus can move while the text is still typingPaste puts the whole transcript at the cursor in one keystroke. That fixes both.
What changes:
default/voxtype/config.toml:mode = "paste"andpaste_keys = "shift+insert"pause_mediamigration edited it. Any edit, even to a comment, means someone chose their settings, so that config is left alone. An idle daemon restarts to pick it up. A busy one keeps the dictation and picks it up at its next restart.test/shell.d/voxtype-paste-default-test.sh, with the four shipped configs as fixturesWhy Shift+Insert and not Super+V? Omarchy maps Shift+Insert to clipboard paste in Alacritty, Ghostty and Kitty, and GUI apps paste with it too. It doesn't depend on Super+V staying bound to universal paste. Voxtype 1.1.1 ships it as its own default for the same reason (voxtype#750).
The trade-off: paste replaces whatever was on the clipboard. Omarchy's clipboard history (Super+Ctrl+V) still has the previous item. If you'd rather have it put back, voxtype has
restore_clipboard = true, at the cost of a race with apps that read the clipboard late.This works with the voxtype-bin 1.1.0 the repo ships today, and with 1.0.1: both accept
pasteandshift+insert.Testing:
bash test/shell.d/voxtype-paste-default-test.shandbash test/shell.d/dictation-test.shSupersedes #9641 and makes #6589's guard unnecessary for the default config.