Skip to content

Add an option to insert dictation without adding it to clipboard #391

Closed

Description

@shashankx86

What are you trying to do?

Dictate on KDE Plasma 6.8 Wayland (kwin_wayland 6.8.0, Hex 0.0.0-dev-221) without losing the current clipboard. Hex copies every non-empty transcript to the clipboard with wl-copy and then sends Ctrl+V, so whatever I had copied before is replaced. I want a choice: clipboard + paste (current behavior), or direct insertion that leaves the clipboard untouched — for example, when I still need a copied URL, path, or snippet for the next paste.

What would help?

A toggle such as “Insert via clipboard” (on/off), or an output setting with “Clipboard + paste” and “Type directly”. In direct mode Hex should not call wl-copy or change the clipboard at all; it should send the transcript to the focused window instead. If direct typing is not feasible on Wayland, restoring the previous clipboard after the paste would also solve the loss, though it can race with clipboard managers.

Activity

  1. thdxr commented on Oct 29, 2026

    @thdxr
    Member

    Thanks for the suggestion!

    Keeping your clipboard intact is a fair request, but Hex is built around clipboard paste. On Linux it leaves the transcript on the clipboard on purpose, and restoring all clipboard formats is listed as not built yet. On KDE Plasma Wayland, Hex already sends its paste keystroke through the RemoteDesktop portal, so typing text through that same portal session is a possible way in, but it would be new work.

    Things we need to work out

    • Hex's rules make clipboard paste the only way text gets inserted, and Linux deliberately keeps the transcript on the clipboard, so a direct mode changes both rules.
    • Typing through the portal or wtype sends key symbols that depend on the keyboard layout, so Unicode, accents and long transcripts may come out wrong or slowly.
    • Restoring the old clipboard means saving every format it held, and it can race with KDE's clipboard manager (Klipper) or anything you copy right after dictating.

    Questions for you

    • Would typing directly be acceptable even if it's slower and may skip characters your keyboard layout can't produce?
    • Would restoring only plain text from your earlier clipboard be enough, or do you often have images or files copied?
    • Do you use Klipper or another clipboard manager that would record each transcript anyway?

    We'll take a closer look.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  2. added
    needs-design
    on Oct 29, 2026
  3. added 2 commits that reference this issue on Oct 29, 2026
    d9948be
    83e0825
  4. thdxr commented on Oct 29, 2026

    @thdxr
    Member

    Thanks @shashankx86 for raising this! Hex on Linux now restores your previous clipboard after it pastes a dictation, by default, just like on macOS. Text, rich text and images all come back, and if the clipboard was empty before, it stays empty. It ships in the next build: https://github.com/anomalyco/hex#install-hex

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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