mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* labs: copy a kept dictation recording as a file Adds the Copy dictation audio lab (Labs › History, off by default, labs.copy_dictation_audio). It stores no audio: History entries that Labs › Keep recordings gave a WAV gain Copy audio beside Play, and the macOS menu bar and the Linux and Windows tray gain Copy last dictation audio, which copies the newest entry that kept its audio. macOS uses Scrawl's file pasteboard, Windows CF_HDROP, and Linux a text/uri-list through the process's one LinuxPaster, which now lives in linux::paste::with_paster so captures and History share it. A missing recording or a refused clipboard says so under the row in History, as a failed Play does; the menus log it, as Copy recent dictations does. The newest-recording lookup skips entries whose file is gone, with a unit test. Docs, translations, labs.json, and the Labs goldens follow. * labs: copy dictation audio off the UI thread and behind both switches Review fixes for the Copy dictation audio lab: - History's Copy audio now runs like Transcribe again: the file lookup on the window, then a worker named hex-copy-audio does the clipboard write (which can wait on another app, Annotate's paster, X11 or wl-copy) and reports Copied or the error back through the window's waker. The button reads Copying… while it runs. - HistoryStore::newest_recording now takes now_ms and filters by the store's retention cutoff, like recent() and search(); the unit test covers a file deleted behind the store, the cutoff boundary, and an expired entry. - The menu bar and tray item, and the History action, need both this lab and Keep recordings; the gate and every handler re-check both. A copy failure from the menu or tray stays logged, as the menu's other copy actions do, and the docs record that limit. - Copy's text check and Copy audio's check clear each other. - A UI test pins Copy audio absent with either switch off and present with both on. - Card and site summary say menu bar or tray; the validateMenuItem doc names both dimmed rows; WindowsDesktopHost::history follows new(); the History feature map mentions the action. * labs: hold text Copy behind a running Copy audio, and refresh the tray Follow-ups from the PR review: - A pending Copy audio keeps a text Copy from starting, since its worker still lands the WAV on the clipboard; text Copy only clears a settled audio state. The UI test pins it. - The Linux and Windows trays compare Copy audio's availability with the last value, so a recording that appears or expires redraws the menu without a snapshot or publish change; the gate is read first and History only with a tray, keeping the check cheap. - Move Copy audio's worker state into history/audio.rs so rune_ui/history.rs stays under the 1,500-line cap. |
||
| .. | ||
| control.rs | ||
| host.rs | ||