FluidVoice icon indicating copy to clipboard operation
FluidVoice copied to clipboard

History: copy entry via double-click and ⌘C (keyboard) in Activity → History

Open Fe2-O3 opened this issue 4 months ago • 10 comments

Feature request

In Activity → History, add two faster ways to copy a transcription entry to the clipboard, alongside the ones that already exist (the Copy button in the detail pane and the right-click Copy Text context menu):

  1. Double-click a row in the history list → copies that entry's text to the clipboard.
  2. ⌘C (Cmd+C) while a row is selected → copies the selected entry's text.

Why

The copy button and context menu both work, but they're an extra step/aim. Double-click and ⌘C are the muscle-memory gestures for "grab this text" everywhere else on macOS (Finder, Mail, Notes, most lists). For a dictation app where the whole point is getting text out quickly, making the history list copyable with the standard gestures removes friction. I'd use this constantly myself.

Proposed behavior (details)

  • Double-click selects the row (if not already) and copies its text — same text the existing Copy button uses (processedText, i.e. TranscriptionHistoryEntry.clipboardText).
  • ⌘C copies the currently-selected entry. No-op when nothing is selected.
  • Both reuse the existing copyToClipboard(_:) helper — no change to what gets copied, only new triggers for it.
  • A brief, subtle "Copied" confirmation would be a nice touch since double-click/⌘C give no other signal, but that's optional.

Notes

  • The history list is currently a custom ScrollView + LazyVStack of Button rows (not a List(selection:)), so ⌘C would be wired via a focus/key path rather than a list selection binding. Happy to implement it consistently with the existing code.
  • I searched open/closed issues and PRs — this doesn't appear to be tracked yet. #450 added "copy last transcript" to the menu bar, which is adjacent but different (that's the last transcript, not an arbitrary selected/double-clicked row in History).

I'm happy to open a PR for this if it sounds good and fits the roadmap — just wanted to file the issue first per the contributing guidelines.


Lineage: this builds on #3 (the original clipboard feature wish) and #450 (which added Copy Last Transcript to the menu bar). This issue extends the same idea into the History list.

Fe2-O3 avatar Jul 10 '26 03:07 Fe2-O3

When you say double click, what do you mean ? The "Final Text" or the item in the history list ?

As you mentioned, we have copy buttons and users can also select text and copy. Although what is missing is the feedback from the copy buttons once successfully copied. I'd be happy if you can change the copy text to show a quick ✓ and Copied message. Not fully aligned on what you are suggesting (assuming I am understanding you correctly)

grohith327 avatar Jul 10 '26 04:07 grohith327

Implemented in #568 — double-click and ⌘C copy the selected entry, with a unified "Copied" toast at the cursor across all copy paths (double-click, ⌘C, Copy button, right-click menu).

Fe2-O3 avatar Jul 10 '26 06:07 Fe2-O3

Hey @grohith327, thanks for taking a look — happy to spell it out.

What "double-click" means: double-clicking the row in the middle History column (the entry showing source app + a preview). Not the Final Text field on the right.

The clean way to think about it: the middle History list is "give me the whole entry" — double-clicking a row copies that entry's entire transcription, the exact same text the Copy button already gives you (clipboardText). Selecting part of a transcription lives on the right, in the Final Text panel — which is exactly where that belongs. So the two never overlap, and double-clicking the list helpfully removes the aim-for-the-small-Copy-button step for the common "copy the whole thing" case.

On the feedback you asked for — I think this is where we're fully aligned. That's exactly what this PR adds: every copy now shows a quick ✓ "Copied" confirmation, unified across all copy paths — including the existing Copy button and the right-click Copy menu, not just the new gestures. So even if you're lukewarm on double-click, the Copy button now gives the success feedback that was missing. (Screenshots are on the PR — the toast pops next to the cursor and fades out.)

Full picture in #568:

  • Double-click a history row → copies that entry (same text as the Copy button)
  • ⌘C while a row is selected → copies it
  • ↑ / ↓ move the selection within the list once it's focused (previously the arrows drove the sidebar) — companion issue #567
  • ✓ "Copied" toast on every trigger: Copy button, right-click, double-click, and ⌘C

Thanks again. This is the best tool of its kind I've used and it's saved me more time than I can count — I'll follow your lead on scope.

Fe2-O3 avatar Jul 10 '26 17:07 Fe2-O3

This issue has been marked stale because it has had no activity for 5 days. It will be closed in 2 days if there is no further activity. Add the keep-open or pinned label to prevent automatic closure.

github-actions[bot] avatar Jul 16 '26 00:07 github-actions[bot]

Hey @Fe2-O3, replies to the features below

Double-click a history row → copies that entry (same text as the Copy button)

Not fully bought into this one yet, need to avoid accidental double taps. I would recommend moving this to a discussion so we can continue there.

⌘C while a row is selected → copies it

What is being copied though? Is it the final text? Either way, I'm not a full fan of this as well because the user don't really know what they're copying. You have a bunch of information on the side, so you're not really sure if you're copying the final text or if you're copying the raw text, etc.

↑ / ↓ move the selection within the list once it's focused (previously the arrows drove the sidebar) — companion issue https://github.com/altic-dev/FluidVoice/issues/567

This one would be useful. I'm down to implementing this.

✓ "Copied" toast on every trigger: Copy button, right-click, double-click, and ⌘C

This one would be useful as well, but I saw the screenshots in the PR. That is not what I'm expecting. I'm expecting the copy button to basically change into a copied button with a check mark, not a toast notification and top of the copy button. Something like this - https://www.shadcn.io/hooks/use-copy-to-clipboard

grohith327 avatar Jul 16 '26 01:07 grohith327

@grohith327 — I want to reframe this, because for me it isn't a nice-to-have, it's an accessibility issue.

I'm disabled. This fork has become essential to how I work: I'm usually multitasking — dictating, then copying and pasting a lot of those transcriptions back out into different apps. Just keeping the selections straight is hard enough; aiming precisely at that small Copy button on top of it is genuinely difficult for me. Being able to spot the entry I want and just double-click it is the difference between this being comfortable and being painful. To keep it, I'm running my own build from source — which means I'm going without Fluid Intelligence entirely, since it isn't compiled into a build from this repo.

Double-click to copy. This History view is, in practice, a clipboard-history list — not always the system clipboard, I know, but the same concept: a list of past outputs you reach back into and re-copy. And "double-click a row to copy it" is exactly how established macOS clipboard tools already work — Pastebot ("double-click on a clipping… to copy") and Paste both bind copy to double-click, and Maccy, Raycast, and Alfred all re-copy on a single row activation. Requiring a double-click is, if anything, the cautious version of that pattern — and it's a gesture people already have muscle memory for.

The accessibility side isn't just my preference: small pointer targets are hard for people with limited dexterity — that's the whole reason WCAG's target-size guidance exists. A full-width, already-highlighted row is a big, forgiving target; a small icon button is the opposite.

On accidental double-taps — you may well be right that some people need guarding there, and I don't want to wave it away. My honest preference is to keep it on by default, since that's the accessible default. But if the risk worries you, gating it behind a setting is a clean compromise — and I'll keep it enabled for myself either way. Zero risk for anyone who opts out.

⌘C — what's being copied? Fair question, and the harmonize commit (4a9258c, already pushed) settles it: double-click, ⌘C, the Copy button, and the right-click Copy Text now all copy the same clipboardText — the trimmed final text, falling back to raw only when there's no processed text. So it's always exactly what the Copy button copies, and the selected row is highlighted so you can see what's targeted.

Arrow-key nav (#567) — glad you're in.

Copied feedback. Done — I've switched the buttons to the inline Copy → ✓ Copied state, just like you want (pushed in 4074066).

The one gap: keyboard navigation means keyboard copying — ⌘C — and there's no button there to turn into "Copied." Same for double-click. That's what the toast is for. I'm flexible on the form, but those paths shouldn't be silent.

Let me know and I'll move this over to a Discussion — happy to keep working it through with you.

Fe2-O3 avatar Jul 16 '26 07:07 Fe2-O3

On ⌘C specifically — I'd push back gently, because I think it's more important than it might look. Right now the copy lives on .simultaneousGesture(TapGesture(count: 2)) rather than the row Button's action, so VoiceOver's activate can't reach it; ⌘C is currently the only VoiceOver-reachable way to copy a history row. That's the shape W3C documents as failure technique F54 — "using only pointing-device-specific event handlers… for a function" — against SC 2.1.1 Keyboard, which is Level A, and whose Note 1 says it "relates to the underlying function, not the input technique." Double-click is the technique; copy is the function. We're a native app, so WCAG applies by adoption rather than jurisdiction (WCAG2ICT / Section 508) — I'm citing the principle, not asserting a violation. Note 2 is also explicit that pointer input is welcome "in addition to keyboard operation," so the double-click doesn't threaten anything; it just isn't the half that carries the weight here.

Related, and I should have flagged it in the original PR: the app has no VoiceOver announcements anywhere, so the "Copied" toast is visual-only — a VoiceOver user gets no confirmation the copy landed, by any path. Happy to add an announcement, plus an .isSelected trait on the rows (matching the pattern already in CustomDictionaryView.swift:2608) so VoiceOver users can tell which entry ⌘C will copy. Either here or split out, whichever you prefer.

Fe2-O3 avatar Jul 16 '26 16:07 Fe2-O3

This issue has been marked stale because it has had no activity for 5 days. It will be closed in 2 days if there is no further activity. Add the keep-open or pinned label to prevent automatic closure.

github-actions[bot] avatar Jul 22 '26 00:07 github-actions[bot]

@grohith327 — moved this to a Discussion as you suggested, so it's not sprawling across the issue: #692. Same content, laid out from the top. Happy to pick it up there whenever suits you.

Fe2-O3 avatar Jul 22 '26 21:07 Fe2-O3

Thanks @Fe2-O3, trying to spend some time on important bug fixes. Will get to this discussion and PR next week. Apologies for inconvenience. Resolving this issue for now, lets pick it up there.

grohith327 avatar Jul 24 '26 03:07 grohith327