From a6549d3d0e26524cd1f3e388e3da6b4ff466cca4 Mon Sep 17 00:00:00 2001 From: xyz Date: Mon, 13 Dec 2021 02:08:24 -0800 Subject: move cfgc files to their location by git rm then git add them --- home/xyz/.config/myconf/surfingkeys_config.js | 91 +++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 home/xyz/.config/myconf/surfingkeys_config.js (limited to 'home/xyz/.config/myconf/surfingkeys_config.js') diff --git a/home/xyz/.config/myconf/surfingkeys_config.js b/home/xyz/.config/myconf/surfingkeys_config.js new file mode 100644 index 00000000..43316ffa --- /dev/null +++ b/home/xyz/.config/myconf/surfingkeys_config.js @@ -0,0 +1,91 @@ +// old example config, may not work. also, I change ctrl-y to Ctrl-y +// an example to create a new mapping `ctrl-y` +//mapkey('', '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'); + +// I choose to use , , or

instead. I prefer

+//settings.blacklistPattern = /.*youtube\.com.*|.*mail\.google\.com.*/i; + +//unmap(''); +map('',''); +unmap(''); +// ctrl-alt-s not working now (12/09/2021), not sure why, maybe arkenfox user.js problem? +map('',''); +unmap(''); + +// on firefox, firenvim default Ctrl-e will be overwirted by github issue hotkey, see: +// https://github.com/glacambre/firenvim/issues/1046 +// https://bugzilla.mozilla.org/show_bug.cgi?id=1713794 +// currently seems no good solution but to use another hotkey, I choose Ctrl+, +// current surfingkeys version 0.9.74 is outdated and doesn't contain firenvim integration, wait for author to update +// I tried to run the source code as temp extension in about:debugging or with web-ext cli tool but no luck +settings.useNeovim = true; + +// disable all insert mode hotkeys except Ctrl-i for future firenvim integration +//iunmap(''); +iunmap(''); +iunmap(''); +iunmap(''); +iunmap(''); +iunmap(""); +iunmap(''); +iunmap(''); +iunmap(''); +// disable emoj +iunmap(':'); + +mapkey('n','Find next then center cursor', function(){ + Visual.next(false); + Visual.feedkeys('zz'); +}); + +mapkey('N','Find previous then center cursor', function(){ + Visual.next(true); + Visual.feedkeys('zz'); +}); + +// with firefox RFP enabled in user.js, smooth scroll and gg/G do not work, firefox RFP's feature +settings.smoothScroll = false; + +// set theme +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: 16pt; +}`; +// click `Save` button to make above settings to take effect. -- cgit v1.2.3-70-g09d2