-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsurfingkeys.js
36 lines (32 loc) · 890 Bytes
/
surfingkeys.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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');
mapkey('J', '#3Go one tab left', 'RUNTIME("previousTab")');
mapkey('K', '#3Go one tab right', 'RUNTIME("nextTab")');
// 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: #fff; \
color: #000; \
} \
.sk_theme tbody { \
color: #000; \
} \
.sk_theme input { \
color: #000; \
} \
.sk_theme .url { \
color: #555; \
} \
.sk_theme .annotation { \
color: #555; \
} \
.sk_theme .focused { \
background: #f0f0f0; \
}';