Add Golang Documentation CSE
Completions for a Google Custom Search engine indexing Golang Documentation.
This commit is contained in:
parent
99d056ecb3
commit
46e0a53998
|
@ -20,7 +20,7 @@ This is my personal configuration for the wonderful [SurfingKeys](https://github
|
|||
|
||||
#### Bundled Search Engine Completions
|
||||
|
||||
There are currently 42 Search Engine auto-completions.
|
||||
There are currently 43 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
|
|||
| `eb` | `ebay` | `www.ebay.com` | |
|
||||
| `ex` | `exdocs` | `hex.pm` | |
|
||||
| `gd` | `godoc` | `godoc.org` | |
|
||||
| `gg` | `golang` | `Google Custom Search` | |
|
||||
| `gh` | `github` | `github.com` | [:framed_picture:](#github) |
|
||||
| `gi` | `google-images` | `www.google.com` | |
|
||||
| `gl` | `google-lucky` | `www.google.com` | |
|
||||
|
|
|
@ -800,6 +800,15 @@ completions.ex.callback = (response) => {
|
|||
|
||||
// ****** Golang ****** //
|
||||
|
||||
// Golang Docs (Google CSE)
|
||||
completions.gg = {
|
||||
alias: "gg",
|
||||
name: "golang",
|
||||
search: googleCxPublicURL("gg"),
|
||||
compl: googleCxURL("gg"),
|
||||
callback: googleCxCallback,
|
||||
}
|
||||
|
||||
// Godoc
|
||||
completions.gd = {
|
||||
alias: "gd",
|
||||
|
|
|
@ -22,7 +22,7 @@ const keys = {
|
|||
//* ** Google Custom Search Engines ***//
|
||||
// Can be created at https://cse.google.com/cse
|
||||
// Simply create a separate Custom Search Engine for each of the following entries,
|
||||
// pasting the provided URL string in the "Sites to Search" field.
|
||||
// pasting the provided URL string(s) in the "Sites to Search" field.
|
||||
// Then, after creation, go to the control panel for the new Search Engine and copy the
|
||||
// Search Engine ID (cx) into the appropriate configuration variable below:
|
||||
google_cx_ex: "", // hexdocs.pm/*/master/*.html
|
||||
|
@ -31,6 +31,7 @@ const keys = {
|
|||
google_cx_no: "", // nodejs.org/api/*
|
||||
google_cx_cs: "", // chrome.google.com/webstore/*
|
||||
google_cx_jq: "", // api.jquery.com/*
|
||||
google_cx_gg: "", // godoc.org/*, golang.org/pkg/*
|
||||
}
|
||||
|
||||
// You can place any additional private/sensitive variables here and they will
|
||||
|
|
Loading…
Reference in New Issue