surfingkeys-conf/README.md

196 lines
6.7 KiB
Markdown
Raw Normal View History

<!--
NOTICE:
This is an automatically generated file - Do not edit it directly.
The source file is README.tmpl.md
-->
2017-08-28 03:24:24 +00:00
### Maddy's SurfingKeys Configuration
2018-08-09 23:45:55 +00:00
<!-- TODO: Determine minimum SK version -->
<!-- #### Note: This configuration currently only supports SurfingKeys 0.9.14 and below. -->
2017-12-29 01:55:18 +00:00
2018-08-09 23:45:55 +00:00
This is my personal configuration for the wonderful [SurfingKeys](https://github.com/brookhong/Surfingkeys) browser extension.
2017-08-28 03:24:24 +00:00
#### Table of Contents
1. [Bundled Search Engine Completions](#bundled-search-engine-completions)
2. [Installation Instructions](#installation)
2017-10-31 06:56:35 +00:00
3. [Screenshots](#screenshots)
4. [License](#license)
#### Bundled Search Engine Completions
There are currently 43 Search Engine auto-completions.
2017-10-31 05:45:03 +00:00
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.
2017-08-28 03:24:24 +00:00
For example, to open the Wikipedia completion, you would type `awp` while in normal mode.
2017-08-28 03:24:24 +00:00
| Alias | Name | Domain | Screenshots |
| ---- | ------ | ----- | ----- |
| `af` | `archforums` | `Google Custom Search` | |
| `al` | `archlinux` | `www.archlinux.org` | |
| `au` | `AUR` | `aur.archlinux.org` | |
| `aw` | `archwiki` | `wiki.archlinux.org` | |
| `az` | `amazon` | `smile.amazon.com` | |
| `cl` | `craigslist` | `craigslist.org` | |
| `co` | `crunchbase-orgs` | `www.crunchbase.com` | |
2017-12-02 03:02:57 +00:00
| `cp` | `crunchbase-people` | `www.crunchbase.com` | [:framed_picture:](#crunchbase-people) |
| `cs` | `chromestore` | `chrome.google.com` | |
2017-12-02 03:02:57 +00:00
| `de` | `define` | `onelook.com` | [:framed_picture:](#define) |
| `dg` | `duckduckgo` | `duckduckgo.com` | |
2017-12-02 03:02:57 +00:00
| `dh` | `dockerhub` | `hub.docker.com` | [:framed_picture:](#dockerhub) |
| `do` | `domainr` | `domainr.com` | [:framed_picture:](#domainr) |
2018-02-17 06:14:32 +00:00
| `eb` | `ebay` | `www.ebay.com` | |
| `ex` | `exdocs` | `hex.pm` | |
| `gd` | `godoc` | `godoc.org` | |
| `gg` | `golang` | `Google Custom Search` | |
2017-12-02 03:02:57 +00:00
| `gh` | `github` | `github.com` | [:framed_picture:](#github) |
2018-01-04 02:23:08 +00:00
| `gi` | `google-images` | `www.google.com` | |
| `gl` | `google-lucky` | `www.google.com` | |
| `go` | `google` | `www.google.com` | |
| `gs` | `go-search` | `go-search.org` | |
2017-11-20 16:27:42 +00:00
| `gw` | `gowalker` | `gowalker.org` | |
| `ha` | `hackage` | `hackage.haskell.org` | |
| `hd` | `hexdocs` | `hex.pm` | |
2017-12-02 03:02:57 +00:00
| `hn` | `hackernews` | `hn.algolia.com` | [:framed_picture:](#hackernews) |
| `ho` | `hoogle` | `www.haskell.org` | [:framed_picture:](#hoogle) |
| `hw` | `haskellwiki` | `wiki.haskell.org` | |
| `hx` | `hex` | `hex.pm` | |
| `hy` | `hayoo` | `hayoo.fh-wedel.de` | |
2017-11-17 15:49:48 +00:00
| `jq` | `jquery` | `Google Custom Search` | |
2017-12-02 03:02:57 +00:00
| `md` | `mdn` | `developer.mozilla.org` | [:framed_picture:](#mdn) |
| `no` | `node` | `Google Custom Search` | |
2017-12-02 03:02:57 +00:00
| `np` | `npm` | `www.npmjs.com` | [:framed_picture:](#npm) |
| `ow` | `owasp` | `www.owasp.org` | |
| `re` | `reddit` | `www.reddit.com` | |
| `so` | `stackoverflow` | `stackoverflow.com` | |
2017-12-02 03:02:57 +00:00
| `th` | `thesaurus` | `www.onelook.com` | [:framed_picture:](#thesaurus) |
| `vw` | `vimwikia` | `vim.wikia.com` | |
2017-12-02 03:02:57 +00:00
| `wa` | `wolframalpha` | `www.wolframalpha.com` | [:framed_picture:](#wolframalpha) [:framed_picture:](#wolframalpha-2) |
| `wp` | `wikipedia` | `en.wikipedia.org` | |
| `yp` | `yelp` | `www.yelp.com` | |
2017-12-02 03:02:57 +00:00
| `yt` | `youtube` | `www.youtube.com` | [:framed_picture:](#youtube) |
2017-08-28 03:24:24 +00:00
2017-08-28 03:24:24 +00:00
#### Installation
##### Dependencies
- `git`
- `node`
- `gulp`.
2017-08-28 03:24:24 +00:00
##### 1. Clone
2017-08-28 03:24:24 +00:00
```shell
$ git clone http://github.com/b0o/surfingkeys-conf
$ cd surfingkeys-conf
```
##### 2. NPM Install
```shell
$ npm install
```
##### 3. Private API Key Configuration
Copy the example private configuration:
2017-08-28 03:24:24 +00:00
```shell
$ cp ./conf.priv.example.js ./conf.priv.js
```
Open `./conf.priv.js` in your favorite editor and follow the instructions inside:
2017-08-28 03:24:24 +00:00
```shell
$ vim ./conf.priv.js
2017-08-28 03:24:24 +00:00
```
##### 4. Gulp Build/Install
2017-08-28 03:24:24 +00:00
```shell
2018-08-18 23:09:55 +00:00
$ gulp install # OR "gulp build" to build to ./build/.surfingkeys without installing
2017-08-28 03:24:24 +00:00
```
2018-08-18 23:09:55 +00:00
This will build the final configuration file and place it at `~/.surfingkeys`.
If you already have a file in that location, make sure you back it up first!
##### 5. Load your configuration in the SurfingKeys Extension
2018-08-18 23:09:55 +00:00
###### Option A _(recommended)_: Configure SurfingKeys to automatically load configuration file from disk
- __I.__ Visit [`chrome://extensions/`](chrome://extensions/) and enable `Allow access to file URLs` for the Surfingkeys extension
- __II.__ Open the SurfingKeys [configuration page](chrome-extension://mffcegbjcdejldmihkogmcnkgbbhioid/pages/options.html)
- __III.__ Set the `Load settings from` option to point to the configuration file.
_Note: you must specify the full, absolute path; environment variables like `$HOME` or the tilde `~` won't work_:
- __Linux__: `file:///home/{USERNAME}/.surfingkeys` (replace `{USERNAME}` with your username)
- __macOS__: `file:///Users/{USERNAME}/.surfingkeys` (replace `{USERNAME}` with your username)
- __Windows__: `file://%Homedrive%%Homepath%/.surfingkeys` (This is a guess, please correct me if I'm wrong)
2017-08-28 03:24:24 +00:00
2018-08-18 23:09:55 +00:00
- __IV.__ Hack Away! If you ever make a change to any of your configuration files in the future, simply run `gulp install` again and your new configuration will automatically be loaded by SurfingKeys.
2017-08-28 03:24:24 +00:00
2018-08-18 23:09:55 +00:00
###### Option B: Manually copy/paste into the SurfingKeys configuration form
- __I.__ Copy the contents of `./build/.surfingkeys` (or `$HOME/.surfingkeys` if you ran `gulp install`)
- __II.__ Open the SurfingKeys [configuration page](chrome-extension://mffcegbjcdejldmihkogmcnkgbbhioid/pages/options.html)
- __III.__ Paste into the text box, then press `save`
- __IV.__ Repeat steps 4 & 5 after any changes you make to any of your configuration files.
2017-08-28 03:24:24 +00:00
2017-10-31 06:56:35 +00:00
#### Screenshots
##### crunchbase-people
![crunchbase-people screenshot](./assets/screenshots/cp.png)
2017-10-31 06:56:35 +00:00
##### define
![define screenshot](./assets/screenshots/de.png)
2017-10-31 06:56:35 +00:00
##### dockerhub
![dockerhub screenshot](./assets/screenshots/dh.png)
2017-10-31 06:56:35 +00:00
##### domainr
![domainr screenshot](./assets/screenshots/do.png)
2017-10-31 06:56:35 +00:00
##### github
![github screenshot](./assets/screenshots/gh.png)
2017-10-31 06:56:35 +00:00
##### hackernews
![hackernews screenshot](./assets/screenshots/hn.png)
2017-10-31 06:56:35 +00:00
##### hoogle
![hoogle screenshot](./assets/screenshots/ho.png)
2017-10-31 06:56:35 +00:00
##### mdn
![mdn screenshot](./assets/screenshots/md.png)
2017-10-31 06:56:35 +00:00
##### npm
![npm screenshot](./assets/screenshots/np.png)
2017-10-31 06:56:35 +00:00
##### thesaurus
![thesaurus screenshot](./assets/screenshots/th.png)
2017-10-31 06:56:35 +00:00
##### wolframalpha
![wolframalpha screenshot](./assets/screenshots/wa-01.png)
2017-10-31 06:56:35 +00:00
##### wolframalpha 2
![wolframalpha screenshot](./assets/screenshots/wa-02.png)
2017-10-31 06:56:35 +00:00
##### youtube
![youtube screenshot](./assets/screenshots/yt.png)
2017-10-31 06:56:35 +00:00
2017-11-17 15:49:48 +00:00
#### Todo
- [ ] Simplify installation process
- [ ] Improve code organization
- [ ] Ensure screenshots have a plain white background
- [ ] Add additional screenshots
- [x] Feed the kittens
2017-08-28 03:24:24 +00:00
### License
2018-08-09 23:45:55 +00:00
&copy;2017-2018 Maddison Hellstrom - MIT License