Commit Graph
12 Commits
Author SHA1 Message Date
Kit Langton 4dda1cb6ca feat(labs): YOLO mode presses Return after long dictations (#1812)
* Add Labs › YOLO mode: press Return after long dictations (t1558)

* Add a Labs YOLO mode scene (t1558)

* Update Labs goldens for YOLO mode (t1558)

* Box the Windows dictation output job (t1558)
2026-11-13 20:02:34 -08:00
Dax ec7b6b283d labs: copy captures as a zip (#1721)
* labs: copy captures as a zip

A finished Annotate capture can go on the clipboard as one light zip
file (Labs > Copy captures as a zip, off by default): the bundle's
manifest, summary, contact sheet, and keyframes, with summary.md's
bundle path written as ".", and without its video, audio, full-size
frames, delivery markers, or an earlier copy.

crates/capture/src/slim_zip.rs writes it with STORED local headers, a
central directory, and an end-of-central-directory record (CRC-32,
UTF-8 flag, DOS timestamp; no dependency). It lands inside the bundle
beside the other files, renamed into place, so retention removes it
with the bundle.

The clipboard holds only the file: a macOS file URL, Windows CF_HDROP,
or Linux text/uri-list (X11 target or wl-copy). A failed zip build or
clipboard write logs and falls back to the normal copy.

Checks: slim_zip unit tests (CRC-32 vector, central-directory read-back,
excludes, summary rewrite, a second copy), linux/paste file_uri, the
labs switch test, and the regenerated Labs goldens. Not verified: a
real paste of the zip into a chat or agent app on any OS.

* labs: leave the light zip out of the agent host copy

The SSH light-files tar copies a bundle wholesale to the agent host, so
a capture's <stem>.scrawl.slim.zip would travel with it. Share the name
pattern as scrawl-router's SLIM_ZIP_SUFFIX/SLIM_ZIP_TEMP_SUFFIX, use it
from slim_zip, and exclude both from light_files_tar. The existing tar
test now puts the zip and its temp file in the fixture and checks they
stay out.

No other path copies a bundle wholesale: phone ingest builds a new
bundle from the movie and timeline, retention shrinks or trashes named
media, and zoom/export write their own files.

* labs: tidy the capture zip copy

Generate the zipped summary with the bundle folder as ".", so only its
header names the copy's location and transcript text is never touched.

Use strict limits before ZIP64 (0xFFFF files, 0xFFFFFFFF bytes), a
Windows path from encode_wide rather than lossy text, and the current
time for an entry whose summary.md is missing. DOS times stay UTC: the
crate has no local-time facility without a new dependency.

Show the lab row only where Annotate itself is available, under the same
Annotate policy lock, with a folder icon and a shorter description that
fits its card. Docs note the terminal paste gets no text and that the
manifest and summary still name media the zip leaves out.

* labs: match the capture zip description

Use the same shortened sentence in the Labs description the card shows.
2026-11-12 09:14:48 -05:00
Dax 7f54733e22 linux: keep dictation on clipboard lab (#1687) (#1688) 2026-11-11 07:10:59 -05:00
Dax b1a37aaa78 Labs: terminal paste shortcut on Windows and Linux (#1534)
* Add Labs terminal paste shortcut for Windows and Linux

* fix windows build: drop the unused key_down from input/modifiers

* allow the terminal-paste shortcut code to go unused on macos

* mask the second shortcut's menu modifier on auto-repeats

the mask was only set on the first press, so process_button cleared it on each
repeat key-down and a held capture over the repeat delay leaked a bare alt/win
release. set it on every trigger key-down like the dictation key and paste
last do.

* keep side_matches private

* keep the shortcut and dictation helpers under the source cap

windows/dictation.rs, rune_ui/general.rs, and linux/dictation.rs crossed 1,500
non-test lines after the rebase. move the registered-shortcut tables and the
General pane's shortcut rows into submodules, and refresh the Linux Labs
golden for Transform typed text and Terminal paste shortcut.

* call the global setting Terminal paste in typed text's refusal

the lab now owns the name Terminal paste shortcut, so the typed-text errors
and log line must name the global paste_with_shift setting instead.

* drop the terminal paste lab's unused encoded bit

no accessor reads it and no other lab has a bit without a reader; the feature
reads its saved switch directly through Feature::on.

* raw dictation has a hex command; the terminal paste shortcut does not
2026-11-08 07:30:29 -05:00
Dax 24eb49c7ff Labs: Transform typed text shortcut (Linux) (#1525)
* feat(linux): labs transform typed text shortcut (#1519)

* fix(linux): harden typed-text clipboard handling

* fix(linux): keep dictation clipboard fallback, sync typed-text keybinding

* refactor(control): keep shortcut text in its own settings module

settings.rs crossed the 1,500-line limit when Labs added the typed-text
key; the shortcut text parsing and formatting is the one self-contained
concern, so it moves to settings/hotkeys.rs unchanged.
2026-11-08 05:43:46 -05:00
Dax 84462c9f64 linux: release pressed keys when a paste chord fails partway (#1500)
* linux: release pressed keys when a paste chord fails partway (#1498)

* linux: only re-release keys still held after a failed paste
2026-11-07 13:18:59 -05:00
Dax 5316493413 fix(linux): name the missing wl-copy before a Wayland paste fails (#1491)
* fix(linux): name the missing wl-copy before a Wayland paste

* fix(linux): address review on wl-copy warning

* fix(settings): show the wl-copy notice apart from dictation failures
2026-11-07 10:12:33 -05:00
Dax 9e9aca4a20 restore the clipboard on gnome wayland through xwayland, as a labs opt-in (#1111) (#1115) 2026-11-03 07:30:44 -05:00
Dax 36ac4d7140 Explain the desktop's paste permission before it asks (#932) (#935)
* Explain the desktop's paste permission before it asks (#932)

* Golden: the paste permission page
2026-11-01 17:00:18 -05:00
DaxandHex issue pipeline c44a14d258 Fix #733: post-processing timeout and paste on Linux (#734)
Automated fix from the Hex issue pipeline (run 733-2026-11-01t02-08-02-932z).

Fixes #733

Co-authored-by: Hex issue pipeline <noreply@anoma.ly>
2026-10-31 22:11:50 -04:00
Dax d9b92ae919 Wayland paste: close the idle RemoteDesktop session (#718), restore the clipboard via ext-data-control (#719) (#722)
* Wayland paste: close the idle RemoteDesktop session, reopen with the saved grant (#718)

* Wayland clipboard: restore through ext-data-control too (#719); docs

* fmt, lockfile
2026-10-31 20:51:28 -04:00
Kit Langton 0d5f1c3097 Fold linux_* into linux/ 2026-10-31 14:32:07 -07:00