-
Notifications
You must be signed in to change notification settings - Fork 0
/
sublime-package.json
287 lines (287 loc) · 17 KB
/
sublime-package.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
"contributions": {
"settings": [
{
"file_patterns": [
"/Projectionist.sublime-settings"
],
"schema": {
"$id": "sublime://settings/Projectionist",
"definitions": {
"Projections": {
"patternProperties": {
".*": {
"anyOf": [
{
"markdownDescription": "Skip this projection",
"const": "skip"
},
{
"type": "object",
"markdownDescription": "Projection pattern (e.g. `*`, or `tests/**/test_*.py`). \nFrom a globbing perspective, `*` is actually a stand in for `**/*`.",
"properties": {
"alternate": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "Determines the destination of the alternate file (`projectionist_open_alternate` command). \nIf this is a list, the first readable file will be used."
},
"prepend_alternate": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "When projections are merged this will be prepended to the `alternate` value. \nUseful to adjust the value of the existing(built-in, third party) projections."
},
"append_alternate": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "When projections are merged this will be appended to the `alternate` value. \nUseful to adjust the value of the existing(built-in, third party) projections."
}
}
}
]
}
}
},
"PackageConfig": {
"properties": {
"log_level": {
"type": "string",
"default": "WARNING",
"enum": [
"DEBUG",
"INFO",
"WARNING",
"ERROR",
"CRITICAL"
],
"description": "Package log level"
},
"show_status_messages": {
"type": "boolean",
"default": true,
"description": "Show important messages in the sublime status bar"
},
"subprojects": {
"type": "array",
"default": [],
"description": "A list of subprojects",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"lookup_order": {
"type": "array",
"uniqueItems": true,
"default": [
"local",
"file",
"global",
"builtin"
],
"description": "Lookup order",
"items": {
"type": "string",
"enum": [
"local",
"file",
"global",
"builtin"
]
}
},
"create_alternate_file_if_missing": {
"type": "boolean",
"default": true,
"description": "Create the alternate file if missing"
},
"builtin_heuristic_projections": {
"type": "array",
"uniqueItems": true,
"default": [
"elixir",
"ruby",
"sublime"
],
"markdownDescription": "Built-in heuristic projections. \nTo disable, remove the item from the list. \nTo override, remove the desired item from the list and copy/adjust the projections \nfrom https://github.com/timfjord/Projectionist/tree/main/plugin/builtin_projections \nto `heuristic_projections`",
"items": {
"type": "string",
"enum": [
"elixir",
"ruby",
"sublime"
]
}
}
}
}
},
"anyOf": [
{
"$ref": "sublime://settings/Projectionist#/definitions/PackageConfig"
},
{
"properties": {
"heuristic_projections": {
"markdownDescription": "Mapping between a string describing the root of the project and a set of projection. \nWill be merged with other projections in the order defined in the `lookup_order`.",
"default": {},
"patternProperties": {
".*": {
"markdownDescription": "Files and directories that can be found in the root of a project, \nwith `&` separating multiple requirements and `|` separating multiple alternatives \n(e.g. `config/*/production.rb&Gemfile|config/application.rb`). \nThe `!` prefix near a file or directory forbids rather than requires its presence.",
"$ref": "sublime://settings/Projectionist#/definitions/Projections"
}
}
}
}
}
]
}
},
{
"file_patterns": [
"/*.sublime-project"
],
"schema": {
"properties": {
"settings": {
"properties": {
"Projectionist": {
"anyOf": [
{
"$ref": "sublime://settings/Projectionist#/definitions/PackageConfig"
},
{
"properties": {
"projections": {
"markdownDescription": "Local projections (will be merged with other projections in the order defined in the `lookup_order`)",
"default": {},
"$ref": "sublime://settings/Projectionist#/definitions/Projections"
}
}
}
]
}
}
}
}
}
},
{
"file_patterns": [
"/.projections.json"
],
"schema": {
"patternProperties": {
".*": {
"type": "object",
"markdownDescription": "Projection pattern (e.g. `*`, or `tests/**/test_*.py`). \nFrom a globbing perspective, `*` is actually a stand in for `**/*`.",
"properties": {
"alternate": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "Determines the destination of the alternate file (e.g. `projectionist_open_alternate` command in Sublime Text or `:A` command in Vim). \nIf this is a list, the first readable file will be used. \nWill also be used as a default for the `related`."
},
"console": {
"type": "string",
"markdownDescription": "Command to run to start a REPL or other interactive shell. \nWill be defined as `:Console`. \nThis is useful to set from a `*`` projection or on a simple file glob like `*.js`. \nWill also be used as a default for `start`. \nExpansions are shell escaped."
},
"dispatch": {
"type": "string",
"markdownDescription": "Default task to use for `:Dispatch` in dispatch.vim. \nIf not provided, the option for any existing alternate file is used instead. \nExpansions are shell escaped."
},
"make": {
"type": "string",
"markdownDescription": "Sets `makeprg`. Also loads a `:compiler` plugin if one is available matching the executable name. \nThis is useful to set from a `*` projection. \nExpansions are shell escaped."
},
"path": {
"type": "string",
"markdownDescription": "Additional directories to prepend to `path`. \nCan be relative to the project root or absolute. \nThis is useful to set on a simple file glob like `*.js`."
},
"related": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "Indicates one or more files to search when a navigation command is called without an argument, to find a default destination. \nRelated files are searched recursively."
},
"start": {
"type": "string",
"markdownDescription": "Command to run to \"boot\" the project. \nExamples include `lein run`, `rails server`, and `foreman start`. \nIt will be used as a default task for `:Start` in dispatch.vim. \nThis is useful to set from a `*`` projection. \nExpansions are shell escaped."
},
"template": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"markdownDescription": "Array of lines to use when creating a new file."
},
"type": {
"type": "string",
"markdownDescription": "Declares the type of file and create a set of navigation commands for opening files that match the glob. If this option is provided for a literal filename rather than a glob, it is used as the default destination of the navigation command when no argument is given."
}
}
}
}
}
}
]
}
}