mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Add rudimentary $web_search_provider support
Currently only does single words. Multi-word support coming once @cmcaine fixes commandline parser.
This commit is contained in:
parent
0eceb10bfb
commit
7d27755307
2 changed files with 7 additions and 1 deletions
|
@ -178,5 +178,11 @@ export function open(url: string) {
|
|||
messageActiveTab("open", [url])
|
||||
}
|
||||
|
||||
// Hard coded search but lack thereof was annoying
|
||||
export function google(query: string[]){
|
||||
let url = "https://www.google.co.uk/search?q=" + query//.join(" ")
|
||||
messageActiveTab("open", [url])
|
||||
}
|
||||
|
||||
// Misc functions
|
||||
export function focuscmdline() { messageActiveTab("focuscmdline") }
|
||||
|
|
|
@ -47,7 +47,7 @@ export namespace normalmode {
|
|||
["gT", "tabprev"],
|
||||
["gr", "reader"],
|
||||
[":", "showcommandline"],
|
||||
["s", "open google"],
|
||||
["s", "showcommandline google"],
|
||||
["xx", "something"],
|
||||
["i", "insertmode"],
|
||||
// Special keys must be prepended with 🄰
|
||||
|
|
Loading…
Add table
Reference in a new issue