Skip to content

Paste voxtype dictation instead of typing it - #15490

Open
peteonrails wants to merge 1 commit into
omacom:quattrofrom
peteonrails:voxtype-paste-defaults
Open

peteonrails wants to merge 1 commit into
omacom:quattrofrom
peteonrails:voxtype-paste-defaults

Conversation

@peteonrails

Copy link
Copy Markdown
Contributor

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:

Paste puts the whole transcript at the cursor in one keystroke. That fixes both.

What changes:

Why 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 paste and shift+insert.

Testing:

  • bash test/shell.d/voxtype-paste-default-test.sh and bash test/shell.d/dictation-test.sh
  • Shift+Insert the way voxtype sends it (wl-copy, then wtype), on Hyprland 0.56.2:
    • Alacritty, Ghostty, and nvim in Alacritty: pasted Japanese and accented text byte for byte
    • Chromium: pasted into a textarea
    • Firefox: not tested

Supersedes #9641 and makes #6589's guard unnecessary for the default config.

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>
@chrispository

Copy link
Copy Markdown

nice one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants