Last active
February 6, 2022 10:10
-
-
Save quangIO/eddda15ccf2a49d445b057fdfb374269 to your computer and use it in GitHub Desktop.
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, | |
iunmap, | |
imapkey, | |
getClickableElements, | |
vmapkey, | |
map, | |
unmap, | |
cmap, | |
addSearchAlias, | |
removeSearchAlias, | |
tabOpenLink, | |
readText, | |
Clipboard, | |
Front, | |
Hints, | |
Visual, | |
RUNTIME, | |
} = api; | |
map('u', 'e'); | |
mapkey('p', "Open the clipboard's URL in the current tab", function() { | |
Front.getContentFromClipboard(function(response) { | |
window.location.href = response.data; | |
}); | |
}); | |
map('P', 'cc'); | |
map('gi', 'i'); | |
map('F', 'gf'); | |
map('gf', 'w'); | |
map('`', '\''); | |
// save default key `t` to temp key `>_t` | |
map('>_t', 't'); | |
// create a new key `t` for default key `on` | |
map('t', 'on'); | |
// create a new key `o` for saved temp key `>_t` | |
map('o', '>_t'); | |
map('H', 'S'); | |
map('L', 'D'); | |
map('gt', 'R'); | |
map('gT', 'E'); | |
map('K', 'R'); | |
map('J', 'E'); | |
const hintsCss = | |
"font-size: 10pt; font-family: Iosevka, monospace; border: 0px;"; | |
Hints.style(hintsCss); | |
Hints.style(hintsCss, "text"); | |
settings.hintAlign = "left"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment