Implement WebSearch feature.

This commit is contained in:
qianlifeng
2014-02-02 16:15:34 +08:00
parent 76fa97e0a0
commit 495e0ce89b
8 changed files with 122 additions and 42 deletions

View File

@@ -34,11 +34,10 @@ namespace Wox.Plugin.System
}
}
results.AddRange(CommonStorage.Instance.UserSetting.WebSearches.Where(o => o.ActionWord.StartsWith(query.RawQuery)).Select(n => new Result()
results.AddRange(CommonStorage.Instance.UserSetting.WebSearches.Where(o => o.ActionWord.StartsWith(query.RawQuery) && o.Enabled).Select(n => new Result()
{
Title = n.ActionWord,
SubTitle = string.Format("Activate {0} plugin", n.ActionWord),
SubTitle = string.Format("Activate {0} web search", n.ActionWord),
Score = 50,
IcoPath = "Images/work.png",
Action = () => changeQuery(n.ActionWord + " "),