hex/src/paste
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 8eb6dacc77
labs: return to the starting app before pasting (#1618)
Adds Labs › Return to app (`labs.return_to_app`, macOS only, off by
default). While on, a dictation records the app in front as its capture
starts and, right before a Paste or RawPaste output commits, brings that
app back to the front if another one came forward: activate, poll the
frontmost pid every 10 ms for up to 500 ms, settle 50 ms, then paste.

When the app is gone or focus can't be confirmed, nothing is pasted. The
job fails with "couldn't switch back to the app you started in; use Paste
last dictation" (error tone and HUD as any failure), the text becomes the
last transcript so Paste last dictation pastes it, and History records
nothing because only pasted output is kept.

Voice Action, Paste last dictation, meetings, and Labs › Copy dictation
only never switch. Off, no pid is read and output is exactly as before.
2026-11-09 18:32:38 -05:00
..
return_to_app.rs labs: return to the starting app before pasting (#1618) 2026-11-09 18:32:38 -05:00