forked from abe33/atom-tablr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
339 lines (339 loc) · 11.9 KB
/
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
{
"name": "tablr",
"main": "./lib/tablr",
"version": "1.8.3",
"description": "Edit CSV files using a table editor",
"repository": "https://github.com/abe33/atom-tablr",
"license": "MIT",
"engines": {
"atom": ">=1.12.0"
},
"providedServices": {
"tablr-models": {
"description": "Expose Tablr models to other Atom packages",
"versions": {
"1.0.0": "provideTablrModelsServiceV1"
}
}
},
"deserializers": {
"CSVEditor": "deserializeCSVEditor",
"TableEditor": "deserializeTableEditor",
"DisplayTable": "deserializeDisplayTable",
"Table": "deserializeTable"
},
"viewProviders": [
"tablrViewProvider"
],
"configSchema": {
"tableEditor": {
"type": "object",
"properties": {
"undefinedDisplay": {
"title": "Undefined Value Display",
"description": "How to render undefined values in a cell. Leave the field blank to display an empty cell.",
"type": "string",
"default": ""
},
"pageMoveRowAmount": {
"title": "Page Move Row Amount",
"description": "The number of rows to jump when using the `core:page-up` and `core:page-down` commands.",
"type": "integer",
"default": 20
},
"pageMoveColumnAmount": {
"title": "Page Move Column Amount",
"description": "The number of columns to jump when using the `tablr:page-left` and `tablr:page-right` commands.",
"type": "integer",
"default": 5
},
"scrollSpeedDuringDrag": {
"title": "Scroll Speed During Drag",
"description": "The speed of the scrolling motion during a drag gesture, in pixels.",
"type": "integer",
"default": 20
},
"scrollPastEnd": {
"title": "Scroll Past End",
"description": "When enabled, the table can scroll past the end of the table both vertically and horizontally to let manipulate rows and columns more easily.",
"type": "boolean",
"default": false
},
"rowHeight": {
"title": "Row Height",
"description": "The default row height in pixels.",
"type": "integer",
"default": 24
},
"rowOverdraw": {
"description": "The number of rows to render outside the bounds of the visible area to smooth the scrolling motion.",
"title": "Row Overdraw",
"type": "integer",
"default": 3
},
"minimumRowHeight": {
"title": "Minimum Row Height",
"description": "The minimum height of a row in pixels.",
"type": "integer",
"default": 16
},
"rowHeightIncrement": {
"title": "Row Height Increment",
"description": "The amount of pixels to add or remove to a row when using the row resizing commands.",
"type": "integer",
"default": 20
},
"columnWidth": {
"title": "Column Width",
"description": "The default column width in pixels.",
"type": "integer",
"default": 120
},
"columnOverdraw": {
"title": "Column Overdraw",
"description": "The number of columns to render outside the bounds of the visible area to smooth the scrolling motion.",
"type": "integer",
"default": 2
},
"minimumColumnWidth": {
"title": "Minimum Column Width",
"description": "The minimum column width in pixels.",
"type": "integer",
"default": 40
},
"columnWidthIncrement": {
"title": "Column Width Increment",
"description": "The amount of pixels to add or remove to a column when using the column resizing commands.",
"type": "integer",
"default": 20
}
}
},
"copyPaste": {
"type": "object",
"properties": {
"flattenBufferMultiSelectionOnPaste": {
"title": "Flatten Buffer Multi Selection On Paste",
"type": "boolean",
"default": false,
"description": "If the clipboard content comes from a multiple selection copy in a text editor, the whole clipboard text will be pasted in each cell of the table selection."
},
"distributeBufferMultiSelectionOnPaste": {
"title": "Distribute Buffer Multi Selection On Paste",
"type": "string",
"default": "vertically",
"enum": [
"horizontally",
"vertically"
],
"description": "If the clipboard content comes from a multiple selection copy in a text editor, each selection will be considered as part of the same column (`vertically`) or of the same row (`horizontally`)."
},
"treatEachCellAsASelectionWhenPastingToABuffer": {
"title": "Treat Each Cell As A Selection When Pasting To A Buffer",
"type": "boolean",
"default": true,
"description": "When copying from a table to paste the content in a text editor this setting will make each cell appear as if they were created from different selections."
}
}
},
"csvEditor": {
"type": "object",
"properties": {
"maximumRowsInPreview": {
"type": "integer",
"default": 100,
"minimum": 1,
"description": "The maximum number of rows in the CSV preview. Low numbers can speed up the preview generation but can also lead to error or inconsistencies when parsing the whole file if there is errors past the last row in the preview."
},
"tableCreationBatchSize": {
"type": "integer",
"default": 1000,
"minimum": 1,
"description": "When creating a table from a CSV file, filling the table in one single loop can lock the UI if the table is too large. To prevent that from happening the table is filled in small steps where a number of rows equals to the batch size are added to the table."
},
"columnDelimiter": {
"title": "Default Column Delimiter",
"description": "The default column delimiter to use when opening a CSV for the first time. You can write space characters code such as `\\t` instead of using the proper character.",
"type": "string",
"default": ","
},
"rowDelimiter": {
"title": "Default Row Delimiter",
"description": "The default row delimiter to use when opening a CSV for the first time. You can write space characters code such as `\\r` instead of using the proper character. The `auto` value will let the CSV parser determine the proper separator to use depending on the file's content.",
"type": "string",
"default": "auto"
},
"quote": {
"title": "Default Quote Character",
"description": "The default quote character for quoted content.",
"type": "string",
"default": "\""
},
"escape": {
"title": "Default Escape Character",
"description": "The default escape character for escaped quotes in quoted content.",
"type": "string",
"default": "\""
},
"comment": {
"title": "Default Comment Character",
"description": "The default character that indicate a comment. Everything past this character in a line will be ignored. You can set it to `none` to disable the use of comments.",
"type": "string",
"default": "#"
},
"quoted": {
"title": "Quoted Content",
"description": "Whether the column's content are wrapped into quotes or not.",
"type": "boolean",
"default": false
},
"header": {
"title": "File Header",
"description": "Whether to treat the first line of a CSV as the file header or not.",
"type": "boolean",
"default": false
},
"eof": {
"title": "Ensure New Line At End Of File",
"description": "When checked, every file will be saved with an extra new-line character at the end of the file.",
"type": "boolean",
"default": false
},
"skipEmptyLines": {
"title": "Skip Empty Lines",
"description": "When checked, empty lines will simply be ignored.",
"type": "boolean",
"default": false
},
"trim": {
"title": "Trim Cell Content",
"description": "How to treat cell's content when parsing a CSV file.",
"type": "string",
"default": "no",
"enum": [
"no",
"left",
"right",
"both"
]
},
"encoding": {
"title": "Default Encoding",
"description": "The default encoding to use when opening a new CSV file.",
"type": "string",
"default": "UTF-8",
"enum": [
"UTF-8",
"UTF-16 LE",
"UTF-16 BE",
"Western (Windows 1252)",
"Western (ISO 8859-1)",
"Western (ISO 8859-3)",
"Western (ISO 8859-15)",
"Western (Mac Roman)",
"DOS (CP 437)",
"Arabic (Windows 1256)",
"Arabic (ISO 8859-6)",
"Baltic (Windows 1257)",
"Baltic (ISO 8859-4)",
"Celtic (ISO 8859-14)",
"Central European (Windows 1250)",
"Central European (ISO 8859-2)",
"Cyrillic (Windows 1251)",
"Cyrillic (CP 866)",
"Cyrillic (ISO 8859-5)",
"Cyrillic (KOI8-R)",
"Cyrillic (KOI8-U)",
"Estonian (ISO 8859-13)",
"Greek (Windows 1253)",
"Greek (ISO 8859-7)",
"Hebrew (Windows 1255)",
"Hebrew (ISO 8859-8)",
"Nordic (ISO 8859-10)",
"Romanian (ISO 8859-16)",
"Turkish (Windows 1254)",
"Turkish (ISO 8859-9)",
"Vietnamese (Windows 1254)",
"Chinese (GBK)",
"Chinese (GB18030)",
"Traditional Chinese (Big5)",
"Traditional Chinese (Big5-HKSCS)",
"Japanese (Shift JIS)",
"Japanese (EUC-JP)",
"Korean (EUC-KR)"
]
}
}
},
"supportedCsvExtensions": {
"type": "array",
"default": [
"csv",
"tsv",
"CSV",
"TSV"
],
"description": "The extensions for which the CSV opener will be used."
},
"disablePreview": {
"title": "Disable preview",
"description": "When checked, preview will not be presented.",
"type": "boolean",
"default": false
},
"defaultColumnNamingMethod": {
"type": "string",
"default": "alphabetic",
"enum": [
"alphabetic",
"numeric",
"numericZeroBased"
],
"description": "When file has no header, select the default naming method for the columns. `alphabetic` means use A, B,…, Z, AA, AB… `numeric` is for simple numbers, ie 1, 2… `numericZeroBased` is similar to `numeric`, except that it starts numbering from 0 instead of 1"
}
},
"dependencies": {
"atom-utils": "0.9.x",
"coffee-script": "1.7.x",
"csv": "~0.4.5",
"delegato": "1.x",
"element-resize-detector": "^1.1.11",
"iconv-lite": "~0.4.4",
"mixto": "1.x",
"property-accessors": "1.x",
"underscore-plus": "^1"
},
"devDependencies": {
"fs-plus": "^2.8.1",
"standard": "^8.6.0",
"temp": "~0.8.0"
},
"standard": {
"globals": [
"advanceClock",
"atom",
"beforeEach",
"afterEach",
"expect",
"describe",
"fdescribe",
"ffdescribe",
"fffdescribe",
"xdescribe",
"it",
"xit",
"fit",
"ffit",
"fffit",
"jasmine",
"runs",
"spyOn",
"waits",
"waitsFor",
"waitsForPromise",
"requestAnimationFrame",
"HTMLElement",
"IntersectionObserver"
]
}
}