This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.schema.json
67 lines (67 loc) · 1.92 KB
/
config.schema.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"commands": {
"type": "object",
"description": "Map of predefined commands which can be referenced by key",
"properties": {
"default": {
"type": "string",
"description": "The default open command if none specified"
}
},
"additionalProperties": {
"type": "string"
}
},
"types": {
"type": "object",
"description": "Map of file extensions to file type configurations",
"additionalProperties": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "File type description"
},
"aliases": {
"type": "array",
"description": "Any additional extensions associated with the type",
"items": {
"type": "string"
}
},
"icon": {
"type": "string",
"description": "Icon name matching an \"{icon}.*\" file in the icons directory, or the full path to an icon; defaults to the extension"
},
"open": {
"type": "string",
"description": "The open command, either the key of a defined command or the full command itself",
"default": "default"
},
"menu": {
"type": "object",
"description": "Additional menu items as a map of name to command; use an ampersand in the name to specify the underlined \"access key\" (double for a literal)",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"name"
]
}
}
},
"additionalProperties": false,
"required": [
"commands",
"types"
]
}