Skip to content

Instantly share code, notes, and snippets.

@qxj
Last active October 23, 2017 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qxj/996dba339de7802a17410d87b0055850 to your computer and use it in GitHub Desktop.
Save qxj/996dba339de7802a17410d87b0055850 to your computer and use it in GitHub Desktop.
configuration for Surfingkeys
// surfingkeys.js
//
// - map: normal mode
// - imap: insert mode
// - vmap: visual mode
// - cmap: omnibar mode
//
// Simluate Vim keybind
map("<Ctrl-[>", "<Esc>");
map('<Ctrl-f>', 'd');
map('<Ctrl-b>', 'u');
// Replace ping search
removeSearchAliasX('w', 's', 'o');
addSearchAliasX('w', 'pinboard', 'https://pinboard.in/search/u:jqian?query=', 'o');
settings.startToShowEmoji = 1
settings.omnibarSuggestion = true
settings.focusFirstCandidate = true
// Do not disable auto-focus
settings.stealFocusOnLoad = false
// Theme
settings.theme = `
.sk_theme {
background: #000;
color: #fff;
}
.sk_theme tbody {
color: #fff;
}
.sk_theme input {
color: #d9dce0;
}
.sk_theme .url {
color: #2173c5;
}
.sk_theme .annotation {
color: #38f;
}
.sk_theme .omnibar_highlight {
color: #fbd60a;
}
.sk_theme ul>li:nth-child(odd) {
background: #1e211d;
}
.sk_theme ul>li.focused {
background: #4ec10d;
}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment