diff --git a/README.md b/README.md index 370d343..cc03ded 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This is my personal configuration for the wonderful [SurfingKeys](https://github #### Bundled Search Engine Completions -There are currently 43 Search Engine auto-completions. +There are currently 44 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. @@ -72,6 +72,7 @@ For example, to open the Wikipedia completion, you would type `awp` while in nor | `vw` | `vimwikia` | `vim.wikia.com` | | | `wa` | `wolframalpha` | `www.wolframalpha.com` | [:framed_picture:](#wolframalpha) [:framed_picture:](#wolframalpha-2) | | `wp` | `wikipedia` | `en.wikipedia.org` | | +| `ws` | `wikipedia-simple` | `simple.wikipedia.org` | | | `yp` | `yelp` | `www.yelp.com` | | | `yt` | `youtube` | `www.youtube.com` | [:framed_picture:](#youtube) | diff --git a/completions.js b/completions.js index d13fc33..7c49647 100644 --- a/completions.js +++ b/completions.js @@ -344,6 +344,14 @@ completions.wp.callback = response => Object.values(JSON.parse(response.text).qu ) }) +// Wikipedia - Simple English version +completions.ws = { + alias: "ws", + name: "wikipedia-simple", + search: "https://simple.wikipedia.org/w/index.php?search=", + compl: "https://simple.wikipedia.org/w/api.php?action=query&format=json&generator=prefixsearch&prop=info|pageprops%7Cpageimages%7Cdescription&redirects=&ppprop=displaytitle&piprop=thumbnail&pithumbsize=100&pilimit=6&inprop=url&gpssearch=", + callback: completions.wp.callback, +} // WolframAlpha completions.wa = {