From b95b24b6f4902ab240cd61733046fa8bab0adaf3 Mon Sep 17 00:00:00 2001 From: Mikhail Klementyev Date: Thu, 5 Oct 2017 09:33:17 +0300 Subject: [PATCH] Use duckduckgo as default search engine --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index bbdb593..68078cb 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ var ( historyListItems = historyList.Arg("items", "Amount of items").Int64() historyListAll = historyList.Flag("all", "Show all items").Bool() - search = kingpin.Command("search", "Search engine (google by default)") + search = kingpin.Command("search", "Search by duckduckgo") searchArgs = SearchList(search.Arg("string", "String for search")) ) @@ -103,7 +103,6 @@ func main() { case "history": commands.History(db, *historyListItems, 20, *historyListAll) case "search": - // FIXME: currenlty supports only Google - commands.Get(db, jar, "https://google.com/search?q="+strings.Join(*searchArgs, "+")) + commands.Get(db, jar, "https://duckduckgo.com/html/?q="+strings.Join(*searchArgs, "+")) } }