mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 10:27:45 +02:00
Add bing and perplexity as search engines
This commit is contained in:
parent
7c9f79f243
commit
d506604918
@ -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}` |
|
||||
| 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`
|
||||
When set to `true`, swaps the shortcuts for showing results in the same or new tab, defaulting to showing results in a new tab.
|
||||
|
@ -33,6 +33,8 @@ func convertSearchUrl(url string) string {
|
||||
var searchEngines = map[string]string{
|
||||
"duckduckgo": "https://duckduckgo.com/?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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user