mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
174c7a776e
1. Add baidu, fix #576, #582 2. Refactoring
183 lines
6.5 KiB
C#
183 lines
6.5 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace Wox.Plugin.WebSearch
|
|
{
|
|
public class Settings
|
|
{
|
|
public List<WebSearch> WebSearches { get; set; } = new List<WebSearch>
|
|
{
|
|
new WebSearch
|
|
{
|
|
Title = "Google",
|
|
ActionKeyword = "g",
|
|
Icon = "google.png",
|
|
Url = "https://www.google.com/search?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Google Scholar",
|
|
ActionKeyword = "sc",
|
|
Icon = "google.png",
|
|
Url = "https://scholar.google.com/scholar?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Wikipedia",
|
|
ActionKeyword = "wiki",
|
|
Icon = "wiki.png",
|
|
Url = "https://en.wikipedia.org/wiki/{q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "FindIcon",
|
|
ActionKeyword = "findicon",
|
|
Icon = "pictures.png",
|
|
Url = "http://findicons.com/search/{q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Facebook",
|
|
ActionKeyword = "facebook",
|
|
Icon = "facebook.png",
|
|
Url = "https://www.facebook.com/search/?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Twitter",
|
|
ActionKeyword = "twitter",
|
|
Icon = "twitter.png",
|
|
Url = "https://twitter.com/search?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Google Maps",
|
|
ActionKeyword = "maps",
|
|
Icon = "google_maps.png",
|
|
Url = "https://maps.google.com/maps?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Google Translate",
|
|
ActionKeyword = "translate",
|
|
Icon = "google_translate.png",
|
|
Url = "https://translate.google.com/#auto|en|{q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Duckduckgo",
|
|
ActionKeyword = "duckduckgo",
|
|
Icon = "duckduckgo.png",
|
|
Url = "https://duckduckgo.com/?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Github",
|
|
ActionKeyword = "github",
|
|
Icon = "github.png",
|
|
Url = "https://github.com/search?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Github Gist",
|
|
ActionKeyword = "gist",
|
|
Icon = "gist.png",
|
|
Url = "https://gist.github.com/search?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Gmail",
|
|
ActionKeyword = "gmail",
|
|
Icon = "gmail.png",
|
|
Url = "https://mail.google.com/mail/ca/u/0/#apps/{q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Google Drive",
|
|
ActionKeyword = "drive",
|
|
Icon = "google_drive.png",
|
|
Url = "https://drive.google.com/?hl=en&tab=bo#search/{q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Wolframalpha",
|
|
ActionKeyword = "wolframalpha",
|
|
Icon = "wolframalpha.png",
|
|
Url = "https://www.wolframalpha.com/input/?i={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Stackoverflow",
|
|
ActionKeyword = "stackoverflow",
|
|
Icon = "stackoverflow.png",
|
|
Url = "https://stackoverflow.com/search?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "I'm Feeling Lucky",
|
|
ActionKeyword = "lucky",
|
|
Icon = "google.png",
|
|
Url = "https://google.com/search?q={q}&btnI=I",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Google Image",
|
|
ActionKeyword = "image",
|
|
Icon = "google.png",
|
|
Url = "https://www.google.com/search?q={q}&tbm=isch",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Youtube",
|
|
ActionKeyword = "youtube",
|
|
Icon = "youtube.png",
|
|
Url = "https://www.youtube.com/results?search_query={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Bing",
|
|
ActionKeyword = "bing",
|
|
Icon = "bing.png",
|
|
Url = "https://www.bing.com/search?q={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title = "Yahoo",
|
|
ActionKeyword = "yahoo",
|
|
Icon = "yahoo.png",
|
|
Url = "https://www.search.yahoo.com/search?p={q}",
|
|
Enabled = true
|
|
},
|
|
new WebSearch
|
|
{
|
|
Title= "Baidu",
|
|
ActionKeyword= "bd",
|
|
Icon= "baidu.png",
|
|
Url="https://www.baidu.com/#ie=UTF-8&wd={q}",
|
|
Enabled= true
|
|
}
|
|
};
|
|
|
|
public bool EnableWebSearchSuggestion { get; set; }
|
|
|
|
public string WebSearchSuggestionSource { get; set; }
|
|
}
|
|
} |