You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make possible to copy from text in screenshot mode #1733
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:
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.
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.
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.
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!
@richiemcilroy I saw you added OCR in 0.5.3. This CleanShot feature that lets you select any area on your screen and copy the text would be killer. Couple of open-source implementations:
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
@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'
@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
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.
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.
Activity
linear commentedon Apr 14, 2026
CAP-681
tembo commentedon Apr 14, 2026
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.rsfor capture andapps/desktop/src-tauri/src/screenshot_editor.rsfor the editor backend. The frontend lives inapps/desktop/src/routes/screenshot-editor/.For implementation, you'd likely want to:
Add an OCR dependency - On macOS, you could use Apple's Vision framework via
objc2-visionor similar bindings since it already powers Live Text. For Windows, consider Tesseract (tesseract-rsorleptonica-sys) or Windows.Media.Ocr runtime APIs.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.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.Hook into existing clipboard - There's already
write_clipboard_stringand related clipboard functions inapps/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 atapps/desktop/src-tauri/src/captions.rsfor patterns on how ML-based processing is integrated into the Tauri app.The main architectural decision would be whether to run OCR:
Happy to see you're interested in contributing this!
salmonumbrella commentedon Jul 9, 2026
@richiemcilroy I saw you added OCR in 0.5.3. This CleanShot feature that lets you select any area on your screen and copy the text would be killer. Couple of open-source implementations:
richiemcilroy commentedon Jul 9, 2026
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
salmonumbrella commentedon Jul 9, 2026
@richiemcilroy OCR works, but is a lot of clicks! on cleanshot
cmd-shift-2to 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'salmonumbrella commentedon Jul 28, 2026
@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
salmonumbrella commentedon Oct 24, 2026
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.
richiemcilroy commentedon Nov 4, 2026
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.