Skip to content

Instantly share code, notes, and snippets.

@kevinlondon
Last active July 5, 2017 17:30
Show Gist options
  • Save kevinlondon/9df9b44adac6a0711d59cebacb2cd290 to your computer and use it in GitHub Desktop.
Save kevinlondon/9df9b44adac6a0711d59cebacb2cd290 to your computer and use it in GitHub Desktop.
Surfingkeys configuration. Think dotfiles for the browser
// 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 `u` with `?`, click `Default mappings` to see how `u` works.
map('?', 'u');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
map('{', 'e');
map('}', 'd');
// Swap tabs
map('H', 'E');
map('L', 'R');
// Navigate forward or back in history
map('>', 'D');
map('<', 'S');
// click `Save` button to make above settings to take effect.
// set theme
settings.theme = `
.sk_theme {
background: #000;
color: #fff;
}
.sk_theme tbody {
color: #000;
}
.sk_theme input {
color: #317ef3;
}
.sk_theme .url {
color: #38f;
}
.sk_theme .annotation {
color: #38f;
}
.sk_theme .focused {
background: #aaa;
}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment