Skip to content

About

Universal Ctrl+F for macOS. Search for any visible text across all your screens using OCR.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

ScreenFind

Universal Ctrl+F for macOS. Search for any visible text across all your screens using OCR.

macOS 14+ Swift 5.10 License: MIT

What it does

Press Ctrl+F from anywhere in macOS and ScreenFind will:

  1. Capture all connected screens
  2. Run OCR (Apple Vision framework) to detect all visible text
  3. Show a Spotlight-style floating search bar — type to find text in real-time
  4. Highlight matches in-place with glowing rings (orange = current, yellow = others)
  5. Track matches live: rings follow text that scrolls or streams
  6. Navigate between matches with the Up/Down arrow keys
  7. Press ESC to clear (again to dismiss), or click anywhere outside

For the focused app, ScreenFind also reads off-screen text (scrolled content) via the macOS Accessibility API and shows a badge with the count of hidden matches.

Requirements

  • macOS 14.0+ (Sonoma)
  • No third-party dependencies — uses only system frameworks (Vision, ScreenCaptureKit, AppKit, SwiftUI)

Build & Run

git clone https://github.com/YOUR_USERNAME/ScreenFind.git
cd ScreenFind
swift run

The app appears as a magnifying glass icon in the menu bar.

Permissions

ScreenFind needs three permissions (granted once via System Settings > Privacy & Security):

Permission Why
Screen Recording Capture screen content for OCR
Accessibility Read off-screen text in applications
Input Monitoring Listen for the global hotkey

Access the permission guide from the menu bar: ScreenFind > Permissions...

Configuration

The global hotkey defaults to Ctrl+F and can be changed in ScreenFind > Settings... Press any modifier+key combination to set a new hotkey.

Architecture

Sources/ScreenFind/
  App/          — Entry point, AppDelegate
  Core/         — HotkeyManager, ScreenCaptureService, OCRService,
                  SearchEngine, MatchNavigator, OverlayCoordinator,
                  AccessibilityService
  Models/       — ScreenCapture, OCRResult, SearchMatch
  Overlay/      — OverlayWindowController, OverlayContentView
  UI/           — SearchBarContentView, SettingsView, MenuBarView,
                  OffScreenBadgeView
  Permissions/  — PermissionManager, PermissionOnboardingView
  Utilities/    — CoordinateTransformer, HotkeyDisplayString

Key design decisions:

  • The overlay is fully transparent — the screen stays live and scroll/clicks pass through; the capture is used only as OCR input
  • While active, the screen is re-captured and re-OCR'd continuously so highlights follow moving text
  • Search is real-time: OCR results are cached, text matching is sub-millisecond per keystroke
  • Each screen gets its own overlay window at .screenSaver level
  • The search bar floats above the overlay in an NSPanel
  • Zero third-party dependencies

License

MIT

About

Universal Ctrl+F for macOS. Search for any visible text across all your screens using OCR.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages