Grab text from anywhere on your screen with Snap Text, just like the popular MacOS feature. Select any area, and it instantly extracts detected text with OCR and copies it to your clipboard. Works with images, screenshots, dialogs, documents, apps, and other places where normal text selection is not available. Can also instantly auto-translate. It aims to be the perfect tool for capturing unselectable text from images, documents, videos, and system dialogs. Hit the Smart Extract hotkey and the extension will extract phone numbers/email/URLs/IP addresses/color codes from where your cursor is at for smart clipboard extraction - yes, even from static images.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
EGO-A-005 manual_review
extensions should not access the clipboard directly
Direct clipboard access via `St.Clipboard.get_default()` requires reviewer scrutiny.
dependencies.js:186
St.Clipboard.get_default()
extension.js:258
St.Clipboard.get_default()
extension.js:586
St.Clipboard.get_default()
| Version | Status |
|---|---|
| 11 | Active |
| 10 | Rejected |
| 9 | Rejected |
| 8 | Active |
| 7 | Inactive |
| 6 | Rejected |
| 5 | Inactive |
| 4 | Inactive |
| 3 | Rejected |
| 2 | Rejected |
| 1 | Rejected |
1. You cannot use spawn command to copy (line 621 `ocr.js`). 2. Please don't send unnecessary code (line 239 `extension.js`). 3. Timeout should be removed on destroy and before creating a new one (line 122 `smartmenu.js`): [EGO Review Guidelines: Timeout](https://gjs.guide/extensions/review-guidelines/review-guidelines.html#remove-main-loop-sources) 4. What's the reason for `=== 'function'` checks? 5. This code has too much spawn commands. I highly recommend to create an app and make it as a dependency for this extension. You can communicate between app and the extension with d-bus: [D-Bus Guide](https://gjs.guide/guides/gio/dbus.html)