feat(search): Implement automatic GitHub link detection from clipboard#278
feat(search): Implement automatic GitHub link detection from clipboard#278rainxchzed merged 2 commits intomainfrom
Conversation
This commit introduces a feature that automatically detects GitHub links in the clipboard when opening the search screen. It includes the necessary logic to monitor the clipboard setting and UI strings for multiple languages. - **feat(search)**: Updated `SearchViewModel` to observe the `autoDetectClipboardLinks` setting. When enabled, it triggers a clipboard check and updates the state with detected links and banner visibility; when disabled, it clears detected links and hides the banner. - **i18n**: Added string resources for clipboard detection features (e.g., "Open GitHub link", "Clipboard link detected", "Auto detect clipboard links") across multiple locales including Turkish, Spanish, Chinese, French, Hindi, Italian, Japanese, Korean, Polish, Bengali, and Russian.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (12)
WalkthroughAdds seven new localization strings for GitHub/clipboard link handling across eleven language files and updates SearchViewModel to atomically update clipboard-related state and trigger a clipboard link check when auto-detect is enabled. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This commit introduces a feature that automatically detects GitHub links in the clipboard when opening the search screen. It includes the necessary logic to monitor the clipboard setting and UI strings for multiple languages.
SearchViewModelto observe theautoDetectClipboardLinkssetting. When enabled, it triggers a clipboard check and updates the state with detected links and banner visibility; when disabled, it clears detected links and hides the banner.Summary by CodeRabbit