forked from b0o/surfingkeys-conf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.js
38 lines (32 loc) · 1.01 KB
/
conf.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
37
38
const util = require("./util")
const keys = require("./keys")
const completions = require("./completions")
// ---- Settings ----//
util.addSettings({
hintAlign: "left",
omnibarSuggestionTimeout: 500,
richHintsForKeystroke: 1,
theme: `
/* Disable RichHints CSS animation */
.expandRichHints {
animation: 0s ease-in-out 1 forwards expandRichHints;
}
.collapseRichHints {
animation: 0s ease-in-out 1 forwards collapseRichHints;
}
`,
})
if (typeof Hints !== "undefined") {
Hints.characters = "qwertasdfgzxcvb"
}
// Leader for site-specific mappings
const siteleader = "<Space>"
// Leader for OmniBar searchEngines
const searchleader = "a"
// Process mappings and completions
// See ./keys.js and ./completions.js
util.rmMaps(keys.unmaps.mappings)
util.rmSearchAliases(keys.unmaps.searchAliases)
util.processMaps(keys.maps, keys.aliases, siteleader)
util.processCompletions(completions, searchleader)
module.exports = { siteleader, searchleader }