Skip to content

Instantly share code, notes, and snippets.

@pluser
Created April 4, 2023 16:19
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 pluser/c2f74225ac5e8352e4c9f3dbb4d591bf to your computer and use it in GitHub Desktop.
Save pluser/c2f74225ac5e8352e4c9f3dbb4d591bf to your computer and use it in GitHub Desktop.
Configuration for the SurfingKeys
api.Hints.setCharacters('ueohtnasid');
// an example to create a new mapping `ctrl-y`
api.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).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
api.map('gt', 'T');
// an example to remove mapkey `Ctrl-i`
api.unmap('<ctrl-i>');
// set theme
settings.theme = `
.sk_theme {
font-family: Input Sans Condensed, Charcoal, sans-serif;
font-size: 10pt;
background: #002B36;
color: #93A1A1;
}
.sk_theme input {
color: #93A1A1;
}
.sk_theme .url {
color: #268BD2;
}
.sk_theme .annotation {
color: #93A1A1;
}
.sk_theme kbd {
background: #EEE8D5;
color: #111;
}
.sk_theme .omnibar_highlight {
color: #CB4B16;
}
.sk_theme .omnibar_folder {
color: #2AA198;
}
.sk_theme .omnibar_timestamp {
color: #657B83;
}
.sk_theme .omnibar_visitcount {
color: #B58900;
}
.sk_theme .prompt, .sk_theme .resultPage {
color: #93A1A1;
}
.sk_theme .feature_name {
color: #859900;
}
.sk_theme .separator {
color: #859900;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #002F3B;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #083D4A;
}
#sk_status, #sk_find {
font-size: 12pt;
}
#sk_keystroke {
background: #002B36;
}
.expandRichHints span.annotation {
color: #93A1A1;
}`;
// 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