Last active
September 22, 2017 09:44
-
-
Save fd0/9bdc053444541b72894f427ad232be92 to your computer and use it in GitHub Desktop.
Surfingkeys configuration file
This file contains 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
// an example to create a new mapping `ctrl-y` | |
//mapkey('<Ctrl-y>', '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 `u` with `?`, click `Default mappings` to see how `u` works. | |
//map('?', 'u'); | |
// an example to remove mapkey `Ctrl-i` | |
//unmap('<Ctrl-i>'); | |
// click `Save` button to make above settings to take effect. | |
// set theme | |
settings.theme = ` | |
.sk_theme { | |
background: #000; | |
color: #fff; | |
} | |
.sk_theme tbody { | |
color: #000; | |
} | |
.sk_theme input { | |
color: #317ef3; | |
} | |
.sk_theme .url { | |
color: #38f; | |
} | |
.sk_theme .annotation { | |
color: #38f; | |
} | |
.sk_theme .focused { | |
background: #aaa; | |
}`; | |
settings.smoothScroll = false; | |
settings.scrollStepSize = 140; | |
settings.hintAlign = 'left'; | |
// scrolling | |
unmap('<Ctrl-d>'); | |
mapkey('<Ctrl-d>', '#2Scroll down a page', 'Normal.scroll("pageDown")'); | |
unmap('<Ctrl-u>'); | |
mapkey('<Ctrl-u>', '#2Scroll up a page', 'Normal.scroll("pageUp")'); | |
// tab navigation | |
unmap('gt'); | |
mapkey('gt', '#3Go one tab right', 'RUNTIME("nextTab")'); | |
mapkey('gT', '#3Go one tab left', 'RUNTIME("previousTab")'); | |
// history in current tab | |
unmap('S'); | |
mapkey('H', '#4Go back in history', 'history.go(-1)', {repeatIgnore: true}); | |
unmap('D'); | |
mapkey('L', '#4Go forward in history', 'history.go(1)', {repeatIgnore: true}); | |
// close and restore tabs | |
unmap('x'); | |
unmap('d'); | |
mapkey('d', '#3Close current tab', 'RUNTIME("closeTab")'); | |
unmap('X'); | |
unmap('u'); | |
mapkey('u', '#3Restore closed tab', 'RUNTIME("openLast")'); | |
map('F', 'af'); | |
Hints.characters = '0123456789'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment