surfingkeys-conf/README.tmpl.md

110 lines
3.7 KiB
Markdown
Raw Normal View History

<!--{{DISCLAIMER}}-->
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
### 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.
#### 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 <!--{{COMPL_COUNT}}--> 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.
For example, to open the Wikipedia completion, you would type `awp` while in normal mode.
| Alias | Name | Domain | Screenshots |
| ---- | ------ | ----- | ----- |
<!--{{COMPL_TABLE}}-->
#### Installation
##### Dependencies
- `git`
- `node`
- `gulp`.
##### 1. Clone
```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:
```shell
$ cp ./conf.priv.example.js ./conf.priv.js
```
Open `./conf.priv.js` in your favorite editor and follow the instructions inside:
```shell
$ vim ./conf.priv.js
```
##### 4. Gulp Build/Install
```shell
2018-08-18 23:09:55 +00:00
$ gulp install # OR "gulp build" to build to ./build/.surfingkeys without installing
```
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)
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.
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-10-31 06:56:35 +00:00
#### Screenshots
<!--{{SCREENSHOTS}}-->
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
### License
2018-08-09 23:45:55 +00:00
&copy;2017-2018 Maddison Hellstrom - MIT License