<commit_before>/* eslint-disable no-undef */
// Preamble {{{

// To load this local config file:
// i) Check `Allow access to file URLS` for surfingkeys in the general extensions
// view
// ii) In the extensions settings check `Advanced mode` box and add path to this
// file

// To ensure that surfingkeys keys works when starting Chrome or creating a
// new tab set the starting page and the new tab page to something other than
// Chrome's default `chrome//newtab` (for instance google.com)

unmapAllExcept(['f', '/', '*', ':', '.', 'i', 'I', '<Ctrl-i>', 'v', 'm']);

// }}}
// Options and Appearance {{{

settings.omnibarPosition = 'bottom';
settings.showTabIndices = true;
settings.focusFirstCandidate = false;
settings.enableAutoFocus = true;
settings.modeAfterYank = 'Normal';
settings.hintAlign = 'left';
settings.editableBodyCare = false;
Hints.characters = 'asdfghjkl';

// Disable PDF viewer (note that ;s toggle that does this doesn't seem to work)
chrome.storage.local.set({ noPdfViewer: 1 });

// Theme (uses Onedark colors)
settings.theme = `
.sk_theme {
    font-family: Input Sans Condensed, Charcoal, sans-serif;
    font-size: 10pt;
    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: #303030;
}
.sk_theme #sk_omnibarSearchResult>ul>li.focused {
    background: #3e4452;
}
#sk_status, #sk_find {
    font-size: 20pt;
}`;

mapkey(',me', 'Mapping explorer (show usage)', function() {
    Front.showUsage();
});

// }}}
// Bookmarks/Quickmarks {{{

// View and add bookmarks
mapkey(',bm', 'Open bookmarks', function() {
    Front.openOmnibar({ type: 'Bookmarks' });
});
mapkey(',ab', 'Bookmark current page to selected folder', function() {
    let page = {
        url: window.location.href,
        title: document.title<commit_msg>surfingkeys: fix omnibar colors<commit_after>/* eslint-disable no-undef */
// Preamble {{{

// To load this local config file:
// i) Check `Allow access to file URLS` for surfingkeys in the general extensions
// view
// ii) In the extensions settings check `Advanced mode` box and add path to this
// file

// To ensure that surfingkeys keys works when starting Chrome or creating a
// new tab set the starting page and the new tab page to something other than
// Chrome's default `chrome//newtab` (for instance google.com)

unmapAllExcept(['f', '/', '*', ':', '.', 'i', 'I', '<Ctrl-i>', 'v', 'm']);

// }}}
// Options and Appearance {{{

settings.omnibarPosition = 'bottom';
settings.showTabIndices = true;
settings.focusFirstCandidate = false;
settings.enableAutoFocus = true;
settings.modeAfterYank = 'Normal';
settings.hintAlign = 'left';
settings.editableBodyCare = false;
Hints.characters = 'asdfghjkl';

// Disable PDF viewer (note that ;s toggle that does this doesn't seem to work)
chrome.storage.local.set({ noPdfViewer: 1 });

// Theme (uses Onedark colors)
settings.theme = `
.sk_theme {
    font-family: Input Sans Condensed, Charcoal, sans-serif;
    font-size: 10pt;
    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: #303030;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
    background: #3e4452;
}
#sk_status, #sk_find {
    font-size: 20pt;
}`;

mapkey(',me', 'Mapping explorer (show usage)', function() {
    Front.showUsage();
});

// }}}
// Bookmarks/Quickmarks {{{

// View and add bookmarks
mapkey(',bm', 'Open bookmarks', function() {
    Front.openOmnibar({ type: 'Bookmarks' });
});
mapkey(',ab', 'Bookmark current page to selected folder', function() {
    let page = {
        url: window.location.href,
        title: document.title
{'fraction_non_alphanumeric': 0.14960446719404374, 'fraction_numerical': 0.019543973941368076, 'mean_word_length': 3.776666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '301397', 'n_tokens_mistral': 1567, 'n_tokens_neox': 1496, 'n_words': 416}