Skip to content

Windows: configurable paste method (Shift+Insert, Ctrl+Shift+V, direct typing) and paste delays #477

Closed

Description

@elebumm

What are you trying to do?

On Windows, Hex always inserts the transcript by putting it on the clipboard and sending a synthetic Ctrl+V, then restores the clipboard after a fixed 500 ms. That doesn't work well in some apps. Terminals and some Electron or remote-desktop apps ignore Ctrl+V or treat it differently, and a fixed restore delay can race with slow targets.

What would help?

A setting for how text is inserted, for example:

  • Ctrl+V (current default)
  • Shift+Insert
  • Ctrl+Shift+V
  • Direct typing via SendInput, as an opt-in for apps where clipboard paste fails
  • Optional before-paste and after-paste delays, and a configurable (or event-based) clipboard restore

For reference, Handy offers a similar set of paste options, which makes it easy to get dictation working in awkward apps. Related: #391.

Thanks for Hex. The streaming speed on Windows is great.

Activity

  1. thdxr commented on Oct 30, 2026

    @thdxr
    Member

    Thanks for the suggestion!

    Choosing a different paste shortcut on Windows looks reasonable, and Linux already has a precedent: a terminal-paste preference that sends Ctrl-Shift-V instead of Ctrl-V. Today Windows always copies the transcript and sends Ctrl+V, waits for Shift, Alt and Win to be released first, and restores the old clipboard after a fixed 500 ms only if nothing newer replaced it. A direct typing mode and adjustable delays are bigger design changes, so we'd like to settle the scope first.

    Things we need to work out

    • Hex's rules make clipboard paste the fixed way to insert text, with one narrow macOS typing exception, so a general typing mode changes that rule.
    • Windows has no reliable signal that the target app has read the clipboard, so restoring on an event rather than a timer may not be possible.
    • A per-OS paste-method setting needs a settings key on every OS, CLI support, window UI and updated goldens, and should line up with the existing Linux terminal-paste option.

    Questions for you

    • Which apps fail for you (for example Windows Terminal, which Electron app, which remote-desktop client), and does Shift+Insert or Ctrl+Shift+V already work in them when you press it by hand?
    • Would one global paste-shortcut choice be enough, or do you need it per app, for example through Modes?
    • Is it acceptable for the transcript to stay on the clipboard (no restore) for slow targets, instead of adding adjustable delays?

    We'll take a closer look.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  2. added
    needs-design
    on Oct 30, 2026
  3. elebumm commented on Oct 30, 2026

    @elebumm
    Author
    • Right now is the herdr desktop app that comes to mind. Windows Terminal has a CTRL + V thing already put in there, but I think herdr does something differently. Universally, control shift V is something that generally works everywhere with same output.
    • One global pace shortcut would be fine.
    • Yeah, I don't necessarily care.
  4. thdxr commented on Oct 30, 2026

    @thdxr
    Member

    Thanks for the report. A fix is merged into dev and ships in the next dev build: #478

    What we understood

    • Area: Windows paste method (windows)
    • Summary: The reporter asks for a configurable way to insert dictated text on Windows, such as alternative paste shortcuts, an opt-in direct typing mode, and adjustable paste delays and clipboard restore. They say the fixed Ctrl+V paste with a 500 ms clipboard restore fails in some terminals, Electron apps and remote-desktop apps.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  5. thdxr commented on Oct 31, 2026

    @thdxr
    Member

    Thanks @elebumm for asking for a configurable Windows paste method, it's still in Hex.

    To keep Hex simple for new users, unproven features now live in Settings › Labs, off by default. To keep using it, turn on Terminal paste there, or run hex labs on terminal-paste. Get the latest build at https://github.com/anomalyco/hex#install-hex.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  6. added a commit that references this issue on Oct 31, 2026
    dc64a0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions