Last active
October 23, 2017 16:47
-
-
Save qxj/996dba339de7802a17410d87b0055850 to your computer and use it in GitHub Desktop.
configuration for Surfingkeys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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