Created
February 18, 2023 03:21
-
-
Save montchr/fafd1be60f54945c496a5a5dfb7325e5 to your computer and use it in GitHub Desktop.
surfingkeys configuration
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
// Compatibility Prefix | |
const { | |
Clipboard, | |
Front, | |
Hints, | |
Normal, | |
RUNTIME, | |
Visual, | |
aceVimMap, | |
addSearchAlias, | |
cmap, | |
getClickableElements, | |
imap, | |
imapkey, | |
iunmap, | |
map, | |
mapkey, | |
readText, | |
removeSearchAlias, | |
tabOpenLink, | |
unmap, | |
unmapAllExcept, | |
vmapkey, | |
vunmap | |
} = api; | |
map('>_j', 'j'); | |
map('>_k', 'k'); | |
map('>_d', 'd'); | |
map('>_e', 'e'); | |
map('j', '>_d'); | |
map('k', '>_e'); | |
map('d', '>_j'); | |
map('e', '>_k'); | |
map('u', 'e'); | |
mapkey('p', "Open the clipboard's URL in the current tab", function() { | |
Front.getContentFromClipboard(function(response) { | |
window.location.href = response.data; | |
}); | |
}); | |
map('P', 'cc'); | |
map('gi', 'i'); | |
map('F', 'gf'); | |
map('gf', 'w'); | |
map('`', '\''); | |
// save default key `t` to temp key `>_t` | |
map('>_t', 't'); | |
// create a new key `t` for default key `on` | |
map('t', 'on'); | |
// create a new key `o` for saved temp key `>_t` | |
map('o', '>_t'); | |
map('H', 'S'); | |
map('L', 'D'); | |
map('gt', 'R'); | |
map('gT', 'E'); | |
map('K', 'R'); | |
map('J', 'E'); | |
// set theme | |
settings.theme = ` | |
.sk_theme { | |
font-family: Iosevka, Input Sans Condensed, Charcoal, sans-serif; | |
font-size: 10pt; | |
background: #24272e; | |
color: #abb2bf; | |
} | |
.sk_theme tbody { | |
color: #fff; | |
} | |
.sk_theme input { | |
color: #d0d0d0; | |
} | |
.sk_theme .url { | |
color: #61afef; | |
} | |
.sk_theme .annotation { | |
color: #56b6c2; | |
} | |
.sk_theme .omnibar_highlight { | |
color: #528bff; | |
} | |
.sk_theme .omnibar_timestamp { | |
color: #e5c07b; | |
} | |
.sk_theme .omnibar_visitcount { | |
color: #98c379; | |
} | |
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) { | |
background: #303030; | |
} | |
.sk_theme #sk_omnibarSearchResult ul li.focused { | |
background: #3e4452; | |
} | |
#sk_status, #sk_find { | |
font-size: 20pt; | |
}`; | |
// click `Save` button to make above settings to take effect.</ctrl-i></ctrl-y> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment