Skip to content

Instantly share code, notes, and snippets.

@rockyzhang24
Last active February 28, 2023 06:48
Show Gist options
  • Save rockyzhang24/230c5a8a7a5e0c4eb0d7e26d72937647 to your computer and use it in GitHub Desktop.
Save rockyzhang24/230c5a8a7a5e0c4eb0d7e26d72937647 to your computer and use it in GitHub Desktop.
Surfingkeys settings
// Remove the map <C-f> (move the cursor to the beginning of the line) in Insert mode
api.iunmap('<Ctrl-f>');
// Go one tab left or right
api.map('[t', 'E');
api.map(']t', 'R');
// Remove a search engine alias
api.removeSearchAlias('b'); // Baidu
api.removeSearchAlias('e'); // Wikipedia
api.removeSearchAlias('w'); // Bing
// Add a search engine alias
// Reference: https://github.com/brookhong/Surfingkeys/blob/master/docs/API.md#addsearchalias
api.addSearchAlias('b', 'Bing', 'https://www.bing.com/search?q='); // Bing
api.addSearchAlias('a', 'Amazon', 'https://www.amazon.com/s?k='); // Amazon
api.addSearchAlias('w', 'Wikipedia', 'https://en.wikipedia.org/w/?search='); // Wikipedia
// Theme
settings.theme = `
.sk_theme {
font-family: SauceCodePro Nerd Font, Consolas, Menlo, monospace;
font-size: 10pt;
background: #f0edec;
color: #2c363c;
}
.sk_theme tbody {
color: #f0edec;
}
.sk_theme input {
color: #2c363c;
}
.sk_theme .url {
color: #1d5573;
}
.sk_theme .annotation {
color: #2c363c;
}
.sk_theme .omnibar_highlight {
color: #88507d;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #f0edec;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #cbd9e3;
}
#sk_status,
#sk_find {
font-size: 10pt;
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment