Skip to content

Make possible to copy from text in screenshot mode #1733

Open

Description

@wesleymatosdev

Apple screenshot tool already provides that. I can see myself using Cap way more if this was a thing

ps: I'd love to hear maintainers' input on it and work this feature myself

Activity

  1. linear commented on Apr 14, 2026

    @linear
  2. tembo commented on Apr 14, 2026

    @tembo

    Thanks for the feature request! This would be a nice addition to complement the existing screenshot workflow.

    Looking at the codebase, there's currently no OCR/text recognition functionality implemented. The screenshot infrastructure is well-established in crates/recording/src/screenshot.rs for capture and apps/desktop/src-tauri/src/screenshot_editor.rs for the editor backend. The frontend lives in apps/desktop/src/routes/screenshot-editor/.

    For implementation, you'd likely want to:

    1. Add an OCR dependency - On macOS, you could use Apple's Vision framework via objc2-vision or similar bindings since it already powers Live Text. For Windows, consider Tesseract (tesseract-rs or leptonica-sys) or Windows.Media.Ocr runtime APIs.

    2. Integrate with the screenshot pipeline - The screenshot capture returns image data as RGBA bytes (screenshot.rs:capture_screenshot()). You'd process this through the OCR engine before or during the editor phase.

    3. Add a UI layer for text selection - The screenshot editor already has annotation layers (AnnotationLayer.tsx) and tool selection. A text recognition layer could follow similar patterns, overlaying selectable text regions on the image.

    4. Hook into existing clipboard - There's already write_clipboard_string and related clipboard functions in apps/desktop/src-tauri/src/lib.rs (around line 4715) that handle text copying. The extracted text would use these existing utilities.

    Since Cap already has Whisper (whisper-rs) for audio transcription in videos, you might look at apps/desktop/src-tauri/src/captions.rs for patterns on how ML-based processing is integrated into the Tauri app.

    The main architectural decision would be whether to run OCR:

    • At capture time - Detect text immediately when screenshot is taken
    • On-demand - Add a "Copy Text" tool in the screenshot editor that triggers OCR

    Happy to see you're interested in contributing this!

  3. salmonumbrella commented on Jul 9, 2026

    @salmonumbrella
  4. richiemcilroy commented on Jul 9, 2026

    @richiemcilroy
    Member

    Hey @salmonumbrella you can do this in Cap I'm pretty sure. You take a screenshot, and then you can copy the text by highlighting and copying from the screenshot

  5. salmonumbrella commented on Jul 9, 2026

    @salmonumbrella

    @richiemcilroy OCR works, but is a lot of clicks! on cleanshot cmd-shift-2 to highlight a part of the desktop, and text is OCR'd and copied to clipboard w/ push notif. i wish Cap had a shortcut for 'OCR anything'

    Image Image
  6. salmonumbrella commented on Jul 28, 2026

    @salmonumbrella

    @richiemcilroy sorry for the double tag. this feature would make me uninstall CleanShot and use Cap exclusively for screenshots. already did the same with Loom 6 months ago

  7. salmonumbrella commented on Oct 24, 2026

    @salmonumbrella

    yo @richiemcilroy, bumping my earlier request here. this would let me replace CleanShot with Cap for screenshots too.

    The workflow I want is still: press a configurable shortcut, drag over any area of the screen, get the recognized text straight on the clipboard with a notification. No screenshot editor in between, and no saved screenshot unless I opt in.

    I found #2095, which implemented this for Tauri, and saw your note closing it after the GPUI migration and inviting a PR against apps/desktop-gpui. Current GPUI has the screenshot OCR automation template, but I couldn't find a dedicated text-capture hotkey in its hotkey actions.

    Would you want us to submit a GPUI PR bringing over that workflow, or is someone already working on it? Happy to keep it focused on the shortcut, area selection, native OCR and clipboard/notification flow. That's the missing piece for me to drop CleanShot.

  8. richiemcilroy commented on Nov 4, 2026

    @richiemcilroy
    Member

    Thanks for the details! A shortcut that grabs text from an area straight to the clipboard isn't in the new desktop app yet, and a focused PR against apps/desktop-gpui would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions