Add Search Engine Switcher with Keyboard Shortcuts#95
Conversation
✅ Deploy Preview for nainish-startpage ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Notes / Limitations
Testing
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds a search engine switcher feature with keyboard shortcuts to the existing startpage. Users can now switch between different search engines (DuckDuckGo, Google, ChatGPT, Gemini, Perplexity) using Alt key combinations and their searches will be routed to the selected engine.
- Replaced hardcoded DuckDuckGo search URL with configurable search engine system
- Added keyboard shortcuts (Alt + D/G/C/M/P) for quick search engine switching
- Implemented localStorage persistence for selected search engine preference
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| chatgpt: { name: "ChatGPT", url: "https://chat.openai.com/?q=" }, | ||
| gemini: { name: "Gemini", url: "https://gemini.google.com/app?q=" }, |
There was a problem hiding this comment.
The ChatGPT and Gemini URLs appear to use incorrect query parameter formats. ChatGPT doesn't support direct search queries via URL parameters, and Gemini's URL structure may not handle the '?q=' parameter as expected for search functionality.
| chatgpt: { name: "ChatGPT", url: "https://chat.openai.com/?q=" }, | |
| gemini: { name: "Gemini", url: "https://gemini.google.com/app?q=" }, | |
| chatgpt: { name: "ChatGPT", url: "https://chat.openai.com/" }, | |
| gemini: { name: "Gemini", url: "https://gemini.google.com/app" }, |
| ]; | ||
|
|
||
| // Preload all of the themes css to avoid the FOUC on change | ||
|
|
There was a problem hiding this comment.
Empty line with trailing whitespace should be removed to maintain clean code formatting.
Feature: Search Engine Switcher with Keyboard Shortcuts
What this PR adds:
How it works:
Benefits:
Files to be modified:
This enhancement makes the startpage much more versatile for different types of searches!