tools
/
wi
1
0
Fork 0

Use duckduckgo as default search engine

master
dump_stack() 2017-10-05 09:33:17 +03:00
parent 2ee8189fde
commit b95b24b6f4
1 changed files with 2 additions and 3 deletions

View File

@ -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, "+"))
}
}