How bharathmuppaneni571/copythat works
CopyThat is a cross-platform, local clipboard-history desktop app. Users copy normally or invoke capture, then open the global-hotkey popup, search text and screenshot contents, and choose an entry to copy or auto-paste. The app coordinates capture, OCR, persistence, and UI actions; settings, tray controls, appearance, localization, and update checks are supporting product capabilities. Edges are limited to relationships shown in excerpts, the source index, or README; unsampled implementation details are not assumed.
Main entry points: app.rs Event coordinator · popup_ui.rs History popup · settings.rs Settings panel · clipboard.rs Clipboard watcher
Components 16
App coordination
- Event coordinator
src/app.rs - Update checker
src/updater.rs
Capture and media
- Clipboard watcher
src/clipboard.rs - Image files and thumbnails
src/images.rs - Offline screenshot OCR
src/ocr.rs
History and search
- History store and search
src/store.rs
User interface
- History popup
src/popup_ui.rs - Settings panel
src/settings.rs - Themes and widgets
src/theme.rs - Translations
src/i18n.rs - About and update UI
src/about.rs
Desktop integration
- Global hotkeys
src/hotkey.rs - System tray
src/tray.rs - Focus and paste
src/paste.rs
Other components
- Desktop user
- Operating system
Connections 24
- Desktop user → Clipboard watcher: copies content
README.md - Desktop user → Global hotkeys: presses shortcut
README.md - Global hotkeys → Event coordinator: dispatches events
src/lib.rs - Clipboard watcher → Event coordinator: sends capture events
src/app.rs - Clipboard watcher → Image files and thumbnails: stores images
src/clipboard.rs - Event coordinator → Offline screenshot OCR: queues image OCR
src/app.rs - Event coordinator → History store and search: updates history
src/app.rs - Event coordinator → History popup: renders popup
src/app.rs - History popup → Event coordinator: returns UI actions
src/popup_ui.rs - Event coordinator → Settings panel: applies settings actions
src/app.rs - Event coordinator → Focus and paste: restores focus and pastes
src/app.rs - Event coordinator → System tray: handles tray events
src/app.rs - History popup → History store and search: searches entries
src/popup_ui.rs - Settings panel → History store and search: configures storage
src/settings.rs - History popup → Themes and widgets: uses visual widgets
src/popup_ui.rs - Settings panel → Themes and widgets: uses visual widgets
src/settings.rs - History popup → Translations: translates labels
src/popup_ui.rs - Settings panel → Translations: translates labels
src/settings.rs - About and update UI → Update checker: checks for updates
src/about.rs - About and update UI → Themes and widgets: uses visual widgets
src/about.rs - System tray → Operating system: integrates with desktop
- Global hotkeys → Operating system: registers shortcuts
src/hotkey.rs - Focus and paste → Operating system: sends paste input
README.md - Operating system → Clipboard watcher: provides clipboard access
README.md