Add google-images completion

This commit is contained in:
Maddison Hellstrom 2018-01-03 18:23:08 -08:00
parent 91b035eef6
commit e24fd7ee59
2 changed files with 14 additions and 1 deletions

View File

@ -20,7 +20,7 @@ This is my personal configuration for the wonderful [SurfingKeys](https://github
#### Bundled Search Engine Completions
There are currently 40 Search Engine auto-completions.
There are currently 41 Search Engine auto-completions.
You can access a Search Engine auto-completion by pressing the search leader key, which is `a` by default, followed by the search engine alias.
@ -44,6 +44,7 @@ For example, to open the Wikipedia completion, you would type `awp` while in nor
| `ex` | `exdocs` | `hex.pm` | |
| `gd` | `godoc` | `godoc.org` | |
| `gh` | `github` | `github.com` | [:framed_picture:](#github) |
| `gi` | `google-images` | `www.google.com` | |
| `gl` | `google-lucky` | `www.google.com` | |
| `go` | `google` | `www.google.com` | |
| `gs` | `go-search` | `go-search.org` | |

View File

@ -612,6 +612,18 @@ completions.go.callback = (response) => {
Omnibar.listWords(JSON.parse(response.text)[1])
}
// Google Images
completions.gi = {
alias: "gi",
name: "google-images",
search: "https://www.google.com/search?tbm=isch&q=",
compl: "https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&ds=i&q=",
}
completions.gi.callback = (response) => {
Omnibar.listWords(JSON.parse(response.text)[1])
}
// Google - I'm Feeling Lucky
completions.gl = {
alias: "gl",