Add bing and perplexity as search engines

This commit is contained in:
Julian 2025-03-19 16:21:20 +00:00
parent 7c9f79f243
commit d506604918
2 changed files with 4 additions and 0 deletions

View File

@ -1001,6 +1001,8 @@ Either a value from the table below or a URL to a custom search engine. Use `{QU
| ---- | --- | | ---- | --- |
| duckduckgo | `https://duckduckgo.com/?q={QUERY}` | | duckduckgo | `https://duckduckgo.com/?q={QUERY}` |
| google | `https://www.google.com/search?q={QUERY}` | | google | `https://www.google.com/search?q={QUERY}` |
| bing | `https://www.bing.com/search?q={QUERY}` |
| perplexity | `https://www.perplexity.ai/search?q={QUERY}` |
##### `new-tab` ##### `new-tab`
When set to `true`, swaps the shortcuts for showing results in the same or new tab, defaulting to showing results in a new tab. When set to `true`, swaps the shortcuts for showing results in the same or new tab, defaulting to showing results in a new tab.

View File

@ -33,6 +33,8 @@ func convertSearchUrl(url string) string {
var searchEngines = map[string]string{ var searchEngines = map[string]string{
"duckduckgo": "https://duckduckgo.com/?q={QUERY}", "duckduckgo": "https://duckduckgo.com/?q={QUERY}",
"google": "https://www.google.com/search?q={QUERY}", "google": "https://www.google.com/search?q={QUERY}",
"bing": "https://www.bing.com/search?q={QUERY}",
"perplexity": "https://www.perplexity.ai/search?q={QUERY}",
} }
func (widget *searchWidget) initialize() error { func (widget *searchWidget) initialize() error {