hex/src/macos_rune/request.rs
Dax 9a79a25475
make the labs card copy plain (#1929)
* make the labs card copy plain

Rewrite the Labs card titles and lines in words a regular user understands:
YOLO mode says the message sends itself, Live text and Failure notices name
the small recording indicator, Vocabulary help says which speech models it
affects, and the key-side cards name Option, Command, Shift, and Control.
Audit every other card, updating the CLI descriptions, all nine translated
languages, the website lab catalog, the feature docs, and the render goldens.

* fix labs copy review findings

Restore the ISO qualifier on the section-key card, spell out that
double-tap and hold-through shortcuts contain no letter or number key,
cover all Global mode stages in the API text card, and name the print
command in the print-start copy. Restore the developer API card titles,
fix the Annotate capture wording, and retranslate the affected strings.
Remove every replaced translation key and stale lab-name reference.

* fix second labs copy review

Update the live typing test and YOLO goldens. Add a Windows variant of the
hold-through-keys copy naming Ctrl, Alt, Shift, and the Windows key. Remove
the last unused rewrite-by-voice translation key, keep Annotate untranslated
in the replay title, and clean the remaining old lab-name comments.

* use the Polish Annotate pane name in its replay title

Polish calls the Annotate pane Adnotacje, so the Annotate last 15 seconds
title says Ostatnie 15 sekund w Adnotacjach again. Other languages keep
Annotate because their pane name is Annotate.
2026-11-16 22:32:02 -05:00

61 lines
2.2 KiB
Rust
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//! What the window and the menu bar ask the macOS runtime, and the shortcut
//! targets they can record, in the Linux service's vocabulary so the shared
//! panes send the same requests on every platform.
use crate::desktop::host::{DesktopAction, DesktopShortcut};
use crate::transcription::models::{TranscriptionModelId, TranscriptionSelection};
/// What the window asks the runtime, in the Linux service's vocabulary so
/// the shared panes send the same requests on every platform.
#[derive(Clone, Debug)]
pub(crate) enum Request {
/// Update actions go to the updater from the window (`rune_ui::host`).
Desktop(#[allow(dead_code)] DesktopAction),
/// Handled in the window (`rune_ui::host`): an AppKit event monitor.
CaptureShortcutFor(#[allow(dead_code)] ShortcutTarget),
CancelShortcut,
/// Linux's service registers recorded shortcuts; on macOS the window
/// saves them and the listener follows `settings.json`.
#[allow(dead_code)]
SetShortcut {
target: ShortcutTarget,
shortcut: DesktopShortcut,
},
ChooseModel {
model: TranscriptionModelId,
language: String,
},
/// The menu bar's model list: only installed models, never a download.
SelectInstalledModel(TranscriptionModelId),
/// `hex model use`: this exact selection, installed only, never a download.
UseInstalledSelection(TranscriptionSelection),
/// Snapshot from the main-thread TIS observer, not a shortcut event.
InputSourceChanged(Option<String>),
CancelModel,
/// The window saved `settings.json`; adopt it.
ReloadSettings,
}
/// A shortcut the listener registers.
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub(crate) enum ShortcutTarget {
#[default]
Dictation,
PasteLast,
#[cfg(hex_capture)]
Capture,
/// Labs › Annotate last 15 seconds shortcut.
#[cfg(hex_capture)]
CaptureReplay,
RawDictation,
/// Labs › Second dictation shortcut.
SecondDictation,
/// Labs › More dictation shortcuts (macOS): row `index`.
ExtraDictation(usize),
/// Toggle mode's cancel shortcut.
Cancel,
/// Labs › Screenshots.
Screenshot,
/// Labs › Screenshots' record shortcut.
ScreenshotRecord,
}