Skip to content

Instantly share code, notes, and snippets.

@chrisalcantara
Last active June 22, 2021 12:58
Show Gist options
  • Select an option

  • Save chrisalcantara/1525f95f0074ceefa64a4e8b406ed722 to your computer and use it in GitHub Desktop.

Select an option

Save chrisalcantara/1525f95f0074ceefa64a4e8b406ed722 to your computer and use it in GitHub Desktop.
surfing-keys-conf
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
map('gt', 'T');
map('<Ctrl-v>', 'd');
map('<Alt-v>', 'e');
//map('u', 'e');
map("<Ctrl-g>", 'ESC');
map("U", "X");
map("J", "E");
map("K", "R");
map("F", "C");
map("F", "gf");
map("H", "S");
map("L", "D");
// remove keys
unmap('<Ctrl-i>');
unmap('s');
unmap('i');
unmap('I');
aceVimMap("gj", "j", "normal");
aceVimMap("gk", "k", "normal");
removeSearchAliasX('b', 's');
removeSearchAliasX('d', 's');
removeSearchAliasX('g', 's');
removeSearchAliasX('h', 's');
removeSearchAliasX('w', 's');
removeSearchAliasX('y', 's');
removeSearchAliasX('s', 's');
settings.smoothScroll = false;
// set theme
settings.theme = `
.sk_theme {
font-family: sans-serif;
font-size: 10pt;
background: #24272e;
color: #abb2bf;
}
#sk_hints {
font-family: sans-serif !important;
}
.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 {
display: none !important;
}
#sk_status {
display: none !important;
}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment