Last active
September 3, 2023 22:31
-
-
Save sk1418/f3b41edef03cd373e4f1709f4e501991 to your computer and use it in GitHub Desktop.
surfingkeys settings
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
// an example to create a new mapping `ctrl-y` | |
/*mapkey('<Ctrl-y>', 'Show me the money', function() { | |
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
});*/ | |
const { | |
aceVimMap, | |
mapkey, | |
imap, | |
iunmap, | |
imapkey, | |
getClickableElements, | |
vmapkey, | |
map, | |
unmap, | |
cmap, | |
addSearchAlias, | |
removeSearchAlias, | |
tabOpenLink, | |
readText, | |
Clipboard, | |
Front, | |
Hints, | |
Visual, | |
RUNTIME | |
} = api; | |
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. | |
map('gt', 'T'); | |
// remove mapkey `Ctrl-i` and 'Ctrl-e' | |
unmap('<Ctrl-i>'); | |
iunmap('<Ctrl-e>'); | |
//settings.blacklistPattern = /.*inprogress.baeldung.com.*/i; | |
iunmap('<Ctrl-i>', /.*inprogress\.baeldung.*/i) | |
iunmap('<Ctrl-i>', /.*drafts\.baeldung.*/i) | |
Hints.characters = 'yuiophjklnm'; | |
// set theme | |
settings.theme = ` | |
.sk_theme { | |
font-family: 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment