Go to file
Maddison Hellstrom 3a7c3c9c40 [source/keys:feat] toggle between google/ddg 2020-04-25 20:49:12 -07:00
.github docs: add FUNDING.yml 2019-05-29 22:58:23 -07:00
assets [docs:tweak] wording 2019-11-10 03:49:40 -08:00
lambda [deps] upgrade npm dependencies 2019-11-10 05:09:54 -08:00
.babelrc [source:tweak] generalize actions.gh.star 2019-11-09 05:21:46 -08:00
.browserlistrc fix(gulp): upgrade to Gulp 4 2019-03-07 14:13:49 -08:00
.editorconfig Add yml to .editorconfig 2018-08-06 18:21:09 -07:00
.eslintrc.js [tools:tweak] move to esline-config-airbnb-base 2019-09-11 04:48:46 -07:00
.gitignore tweak: gitignore worktree dir 2019-03-07 12:58:28 -08:00
README.md [source:feat] add Amazon keybindings 2019-11-12 23:03:19 -08:00
README.tmpl.md [docs:tweak] clean up README 2019-06-11 17:45:29 -07:00
actions.js [source/keys:feat] toggle between google/ddg 2020-04-25 20:49:12 -07:00
completions.js [source:fix] MDN completion 2020-01-22 01:14:54 -08:00
conf.js [source:tweak] hide `Hints` from gulpfile 2019-09-10 18:26:03 -07:00
conf.priv.example.js feat: add bindings and satisfy eslint 2019-03-07 15:10:15 -08:00
gulpfile.js [source:style] apply eslint --fix 2019-09-11 04:51:27 -07:00
help.js refactor: add lots of stuff 2018-11-02 17:22:41 -07:00
keys.js [source/keys:feat] toggle between google/ddg 2020-04-25 20:49:12 -07:00
package.json [deps] update gulp-parcel 2019-11-10 05:13:11 -08:00
util.js [source:feat] improve GitHub action bindings 2019-11-09 21:30:47 -08:00
yarn.lock [deps] update gulp-parcel 2019-11-10 05:13:11 -08:00

README.md

Maddy's SurfingKeys Configuration

This is my configuration for the SurfingKeys browser extension.

Its primary features include

Table of Contents

  1. Site-Specific Key Mappings
  2. Search Suggestion Engines
  3. Installation Instructions
  4. Screenshots
  5. Todo
  6. License

Features

Site-Specific Key Mappings

241 key mappings for 20 unique sites have been included which can help you perform some common actions:

global
MappingDescription
FOpen a link in non-active new tab
zfOpen link URL in vim editor
wScroll up
sScroll down
giEdit current URL with vim editor
giEdit current URL with vim editor
gIView image in new tab
ypCopy URL path of current page
yICopy Image URL
yTDuplicate current tab (non-active new tab)
;seEdit Settings
gSOpen Chrome settings
=wLookup whois information for domain
=dLookup dns information for domain
=DLookup all information for domain
=cShow Google's cached version of page
=aShow Archive.org Wayback Machine for page
=oShow outline.com version of page
;pdToggle PDF viewer from SurfingKeys
gxEClose tab to left
gxRClose tab to right
algolia.com
MappingDescription
<Space>aOpen search result
amazon.com
MappingDescription
<Space>fsFakespot
<Space>aView product
<Space>cAdd to Cart
<Space>RView Product Reviews
<Space>QView Product Q&A
<Space>AOpen Account page
<Space>COpen Cart page
<Space>OOpen Orders page
behance.net
MappingDescription
<Space>sAppreciate project
<Space>bAdd project to collection
<Space>aView project
<Space>AView project (non-active new tab)
craigslist.org
MappingDescription
<Space>aView listing
dribbble.com
MappingDescription
<Space>sHeart Shot
<Space>aView shot
<Space>AView shot (non-active new tab)
<Space>vView attachment image
<Space>VYank attachment image source URL
<Space>zZoom shot
duckduckgo.com
MappingDescription
<Space>aOpen search result
<Space>AOpen search result (non-active new tab)
]]Show more results
fonts.adobe.com
MappingDescription
<Space>aActivate font
<Space>sFavorite font
github.com
MappingDescription
<Space>AOpen repository Actions page
<Space>COpen repository Commits page
<Space>IOpen repository Issues page
<Space>POpen repository Pull Requests page
<Space>ROpen Repository page
<Space>SOpen repository Settings page
<Space>WOpen repository Wiki page
<Space>XOpen repository Security page
<Space>OOpen repository Owner's profile page
<Space>MOpen your profile page ('Me')
<Space>aView Repository
<Space>uView User
<Space>fView File
<Space>iView Issue
<Space>pView Pull Request
guGo up one path in the URL (GitHub)
<Space>sToggle Star
<Space>yCopy Project Path
<Space>YCopy Project Path (including domain)
<Space>lToggle repo language stats
<Space>DView GoDoc for Project
gitlab.com
MappingDescription
<Space>sToggle Star
<Space>yCopy Project Path
<Space>YCopy Project Path (including domain)
<Space>DView GoDoc for Project
news.ycombinator.com
MappingDescription
<Space>xCollapse comment
<Space>XCollapse next comment
<Space>sUpvote
<Space>SDownvote
<Space>aView post (link)
<Space>AView post (link and comments)
<Space>cView post (comments)
<Space>CView post (comments) (non-active new tab)
gpGo to parent
]]Next page
[[Prev page
producthunt.com
MappingDescription
<Space>aView product (external)
<Space>vView product
<Space>sUpvote product
reddit.com
MappingDescription
<Space>xCollapse comment
<Space>XCollapse next comment
<Space>sUpvote
<Space>SDownvote
<Space>eExpand expando
<Space>aView post (link)
<Space>AView post (link) (non-active new tab)
<Space>cView post (comments)
<Space>CView post (comments) (non-active new tab)
stackoverflow.com
MappingDescription
<Space>aView question
twitter.com
MappingDescription
<Space>fFollow user
<Space>sLike tweet
<Space>RRetweet
<Space>cComment/Reply
<Space>tNew tweet
<Space>TTweet to
<Space>rLoad new tweets
<Space>gGoto user
vimeo.com
MappingDescription
<Space>FToggle fullscreen
wikipedia.org
MappingDescription
<Space>sToggle simple version of current article
<Space>aView page
www.google.com
MappingDescription
<Space>aOpen search result
<Space>AOpen search result (non-active new tab)
yelp.com
MappingDescription
<Space>fsFakespot
youtube.com
MappingDescription
AOpen video
COpen channel
gHGoto homepage
FToggle fullscreen
<Space>Play/pause

Search Suggestion Engines

There are currently 54 search suggestion engines.

You can access a search suggestion prompt by pressing the search leader key, which is a by default, followed by the search engine alias.

For example, to open the Wikipedia suggestion engine, you would type awp while in normal mode.

Alias Name Domain Screenshots
D duckduckgo-lucky duckduckgo.com
G google-lucky www.google.com
af archforums bbs.archlinux.org
al archlinux www.archlinux.org
at alternativeTo alternativeto.net
au AUR aur.archlinux.org
aw archwiki wiki.archlinux.org
az amazon smile.amazon.com
cl craigslist www.craigslist.org
co crunchbase-orgs www.crunchbase.com
cp crunchbase-people www.crunchbase.com 🖼️
cs chromestore chrome.google.com
dd duckduckgo duckduckgo.com
de define onelook.com 🖼️
dh dockerhub hub.docker.com 🖼️
di duckduckgo-images duckduckgo.com
dm duckduckgo-maps duckduckgo.com
dn duckduckgo-news duckduckgo.com
do domainr domainr.com 🖼️
dv duckduckgo-videos duckduckgo.com
eb ebay www.ebay.com
ex exdocs hex.pm
fa firefox-addons addons.mozilla.org
fe firefox-extensions addons.mozilla.org
ft firefox-themes addons.mozilla.org
gd godoc godoc.org
gg golang golang.org
gh github github.com 🖼️
gi google-images www.google.com
go google www.google.com
gs go-search go-search.org
gw gowalker gowalker.org
ha hackage hackage.haskell.org
hd hexdocs hex.pm
hn hackernews news.ycombinator.com 🖼️
ho hoogle www.haskell.org 🖼️
hw haskellwiki wiki.haskell.org
hx hex hex.pm
hy hayoo hayoo.fh-wedel.de
jq jquery jquery.com
md mdn developer.mozilla.org 🖼️
no node nodejs.org
np npm www.npmjs.com 🖼️
ow owasp www.owasp.org
re reddit www.reddit.com
so stackoverflow stackoverflow.com
th thesaurus www.onelook.com 🖼️
vw vimwiki vim.fandom.com
wa wolframalpha www.wolframalpha.com 🖼️🖼️
wp wikipedia en.wikipedia.org
ws wikipedia-simple simple.wikipedia.org
wt wiktionary en.wiktionary.org
yp yelp www.yelp.com
yt youtube www.youtube.com 🖼️

Installation

Dependencies

Building surfingkeys-conf requires a few dependencies to be installed:

  • Surfingkeys ^0.9.40
  • git
  • node
  • gulp

Building & Installing

  1. Clone this repository

    $ git clone http://github.com/b0o/surfingkeys-conf
    $ cd surfingkeys-conf
    
  2. Install the NodeJS build dependencies

    $ npm install
    
  3. (Optional) Private API Key Configuration

    Some search suggestion engines require private API keys for access. These keys are defined in conf.priv.js, which is not itself included in this repository. An example configuration containing instructions on how to generate each API key can be found in conf.priv.example.js.

    Copy the example private configuration:

    $ cp ./conf.priv.example.js ./conf.priv.js
    

    Open ./conf.priv.js in your favorite editor and follow the instructions inside:

    $ vim ./conf.priv.js
    
  4. Gulp Build/Install

    $ gulp install # OR "gulp build" to build to ./build/surfingkeys.js without installing
    

    This will build the final configuration file and place it at ~/.config/surfingkeys.js. If you already have a file in that location, make sure you back it up first!

  5. Load your configuration into the SurfingKeys Extension

    Option A (recommended): Configure SurfingKeys to automatically load configuration file from disk
    • I. Visit chrome://extensions/ and enable Allow access to file URLs for the Surfingkeys extension

    • II. Open the SurfingKeys configuration page

    • 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}/.config/surfingkeys.js (replace {USERNAME} with your username)
      • macOS: file:///Users/{USERNAME}/.config/surfingkeys.js (replace {USERNAME} with your username)
      • Windows: file://%Homedrive%%Homepath%/surfingkeys.js (This is a guess, please correct me if I'm wrong)
    • 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.

    Option B: Manually copy/paste into the SurfingKeys configuration form
    • I. Copy the contents of ./build/surfingkeys.js (or $HOME/.config/surfingkeys.js if you ran gulp install)

    • II. Open the SurfingKeys configuration page

    • 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.

Screenshots

crunchbase-people

crunchbase-people screenshot

define

define screenshot

dockerhub

dockerhub screenshot

domainr

domainr screenshot

github

github screenshot

hackernews

hackernews screenshot

hoogle

hoogle screenshot

mdn

mdn screenshot

npm

npm screenshot

thesaurus

thesaurus screenshot

wolframalpha

wolframalpha screenshot

wolframalpha 2

wolframalpha screenshot

youtube

youtube screenshot

Todo

  • Add CHANGELOG.md using conventional-changelog
  • Improve code organization
  • Ensure screenshots have a plain white background
  • Add additional screenshots
  • Simplify installation process
  • Feed the kittens

License

©2017-2019 Maddison Hellstrom - MIT License