Skip to content

Instantly share code, notes, and snippets.

@NickCrew
Created April 8, 2021 17:44
Show Gist options
  • Save NickCrew/3bfb82715d3a3c127dc4ecaa1236505d to your computer and use it in GitHub Desktop.
Save NickCrew/3bfb82715d3a3c127dc4ecaa1236505d to your computer and use it in GitHub Desktop.
Surfingkeys Settings
// 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).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
map('gt', 'T');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
// set theme
settings.theme = `
.sk_theme {
font-family: "Cascadia Code";
font-size: 11pt;
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: #2b2e3b;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #063c52;
}
#sk_omnibarSearchResult li div.title {
letter-spacing: .1em;
font-weight: bold;
padding-top: .1em;
padding-bottom: .1em
}
#sk_omnibarSearchResult li div.url {
opacity: 85%;
font-weight: normal;
white-space: nowrap;
}
#sk_status, #sk_find {
font-size: 23pt;
}`;
// 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