forked from liberize/alfred-dict-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
50 lines (46 loc) · 1.64 KB
/
config.json
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
39
40
41
42
43
44
45
46
47
48
49
50
{
// keyword to trigger this workflow, `cc` i.e. `查词`
// ** run internal command 'update' to take effect **
"keyword": "cc",
// default dictionary, available options are:
// - `nj` or `oxford`: system oxford dictionary
// - `ld` or `landau`: landau dictionary, not built in, please download and install as instructed
// - `cb` or `iciba`: iciba online dictionary
// - `by` or `bing`: bing online dictionary, may be slower due to absence of api
// - `yd` or `youdao`: youdao online dictionary
// - `hc` or `dictcn`: dict.cn online dictionary, may be slower due to absence of api
"default": "nj",
// keymap for user actions
// + none: default action when you press enter, available options are
// - `open`: open Dictionary.app for `sys` and `ld` or open url in browser for other dictionaries
// - `say`: pronounce word via system tts engine
// + ctrl/alt/shift/cmd/fn: dictionary to switch when press enter with these modifier keys
// ** run internal command 'update' to take effect **
"keymap":
{
"none": "open",
"ctrl": "cb",
"alt": "yd",
"shift": "hc",
"cmd": "nj",
"fn": "by"
},
// dictionary options
// these options will be passed to `lookup` function as argument
// ** don't change these options unless you are aware of what you are doing **
"options":
{
"dictcn":
{
"wap_page": true
}
},
// cache settings
// + enable: enable cache or not
// + expire: cache expire time in hours
"cache":
{
"enable": true,
"expire": 24
}
}