Last active
August 7, 2023 17:04
-
-
Save pedro-stanaka/e38dc83384f377be5886d90f78350e9f to your computer and use it in GitHub Desktop.
SurfingKeys Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
aceVimMap, | |
mapkey, | |
imap, | |
imapkey, | |
getClickableElements, | |
vmapkey, | |
map, | |
unmap, | |
cmap, | |
addSearchAlias, | |
removeSearchAlias, | |
tabOpenLink, | |
readText, | |
Clipboard, | |
Front, | |
Hints, | |
Visual, | |
RUNTIME | |
} = api; | |
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. | |
map('gt', 'T'); | |
// an example to remove mapkey `Ctrl-i` | |
unmap('<Ctrl-i>'); | |
// Search Aliases | |
// github | |
addSearchAlias('git', 'github', 'https://github.com/search?q='); | |
// GSM Arena | |
addSearchAlias('gsm', 'GSM Arena', 'http://www.gsmarena.com/results.php3?sQuickSearch=yes&sName='); | |
// MVN Central Repository | |
addSearchAlias('mvn', 'MVN Central Repository ', 'http://mvnrepository.com/search.html?query='); | |
// youtube2mp3 | |
addSearchAlias('ymp3', 'youtube2mp3', 'http://youtubeinmp3.com/download/?video='); | |
// scholar | |
addSearchAlias('sc', 'scholar', 'http://scholar.google.com.br/scholar?hl=pt-BR&q='); | |
// dblp | |
addSearchAlias('dblp', 'dblp', 'http://dblp.uni-trier.de/search?q='); | |
// dic | |
addSearchAlias('dic', 'dic', 'http://www.thefreedictionary.com/'); | |
// btr | |
addSearchAlias('btr', 'btr', 'http://www.bing.com/translator/?text='); | |
// yt | |
addSearchAlias('yt', 'yt', 'https://www.youtube.com/results?search_query='); | |
// l1 | |
addSearchAlias('l1', 'l1', 'https://tasks.aws.legal.one/browse/'); | |
// l1s | |
addSearchAlias('l1s', 'l1s', 'https://tasks.aws.legal.one/secure/QuickSearch.jspa?searchString='); | |
// dedic | |
addSearchAlias('dedic', 'dedic', 'https://www.dict.cc/?s='); | |
// startpage - anonym google | |
addSearchAlias('sp', 'startpage - anonym google', 'https://www.startpage.com/do/dsearch?query='); | |
// duden - deutsch dict | |
addSearchAlias('dd', 'duden - deutsch dict', 'https://www.duden.de/suchen/dudenonline/'); | |
// leo - pt - de dict | |
addSearchAlias('leo', 'Leo Dict - de - pt', 'https://dict.leo.org/portugiesisch-deutsch/'); | |
// deepl translator deutsch | |
addSearchAlias('td', 'Deepl To DE', 'https://www.deepl.com/en/translator#en/de/'); | |
// Shopify Vault | |
addSearchAlias('sv', 'Vault - Shopify', 'https://vault.shopify.io/search?q='); | |
// Blacklist | |
settings.blocklistPattern = /.*mail.google.com.*|.*inbox.google.com.*|trello.com|duolingo.com|youtube.com|udemy.com/i; | |
// 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; | |
}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment