Add EBay completion

This commit is contained in:
Maddison Hellstrom 2018-02-16 22:14:32 -08:00
parent 3406927c33
commit 99d056ecb3
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 #### Bundled Search Engine Completions
There are currently 41 Search Engine auto-completions. There are currently 42 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. 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.
@ -41,6 +41,7 @@ For example, to open the Wikipedia completion, you would type `awp` while in nor
| `dg` | `duckduckgo` | `duckduckgo.com` | | | `dg` | `duckduckgo` | `duckduckgo.com` | |
| `dh` | `dockerhub` | `hub.docker.com` | [:framed_picture:](#dockerhub) | | `dh` | `dockerhub` | `hub.docker.com` | [:framed_picture:](#dockerhub) |
| `do` | `domainr` | `domainr.com` | [:framed_picture:](#domainr) | | `do` | `domainr` | `domainr.com` | [:framed_picture:](#domainr) |
| `eb` | `ebay` | `www.ebay.com` | |
| `ex` | `exdocs` | `hex.pm` | | | `ex` | `exdocs` | `hex.pm` | |
| `gd` | `godoc` | `godoc.org` | | | `gd` | `godoc` | `godoc.org` | |
| `gh` | `github` | `github.com` | [:framed_picture:](#github) | | `gh` | `github` | `github.com` | [:framed_picture:](#github) |

View File

@ -274,6 +274,18 @@ completions.cl.callback = (response) => {
Omnibar.listWords(JSON.parse(response.text)) Omnibar.listWords(JSON.parse(response.text))
} }
// EBay
completions.eb = {
alias: "eb",
name: "ebay",
search: "https://www.ebay.com/sch/i.html?_nkw=",
compl: "https://autosug.ebay.com/autosug?callback=0&sId=0&kwd=",
}
completions.eb.callback = (response) => {
Omnibar.listWords(JSON.parse(response.text).res.sug)
}
// Yelp // Yelp
completions.yp = { completions.yp = {
alias: "yp", alias: "yp",