From e373889bcab9821ac83222142a35647d26e09451 Mon Sep 17 00:00:00 2001 From: Douglas Lardo Date: Wed, 25 Jun 2025 23:32:46 -0700 Subject: [PATCH] initial --- .wakatime-project | 0 SurfingKeysConfig.js | 69 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .wakatime-project create mode 100644 SurfingKeysConfig.js diff --git a/.wakatime-project b/.wakatime-project new file mode 100644 index 0000000..e69de29 diff --git a/SurfingKeysConfig.js b/SurfingKeysConfig.js new file mode 100644 index 0000000..557a680 --- /dev/null +++ b/SurfingKeysConfig.js @@ -0,0 +1,69 @@ +// an example to create a new mapping `ctrl-y` +//api.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. +// api.map('gt', 'T'); + +// an example to remove mapkey `Ctrl-i` +// api.unmap(''); +// https://github.com/brookhong/Surfingkeys/blob/master/docs/API.md#addsearchalias +// s[x] where [x] is the search alias key that follows s. +// sg E.g., search google +// sw - search bing +// o[x] - open search engine +// sx - search highlighted word +// sX - search with clipboard and interactive mode +// sox - search only within the current site. I.e., site:example.tld + +api.addSearchAlias('k', 'kagi', 'https://kagi.com/search?q=', 's', 'https://kagi.com/api/autosuggest/?q=', function(response) { + var res = JSON.parse(response.text); + return res.map(function(r){ + return r.phrase; + }); +}); + +api.removeSearchAlias('b') // baidu +api.removeSearchAlias('w') // bing + + +// 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: 20pt; +//}`; +// click `Save` button to make above settings to take effect.