forked from fitnr/SublimeDataConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataConverter.sublime-settings
52 lines (45 loc) · 2.38 KB
/
DataConverter.sublime-settings
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
{
// Should be either true, "sniff" or "never"
// When true, the first row is always treated as the header row
// When "sniff", DataConverter will sniff for headers (sniffing isn't perfect)
// When false, DataConverter will assume there are no headers, and use default headers ([val1, val2, ...])
"headers": "sniff",
// Define a dialect for the csv reader
// Check the python docs for a description of how to define a dialect
// https://docs.python.org/3.3/library/csv.html#dialects-and-formatting-parameters
// (Python's csv reader is hard-coded to recognise either '\r' or '\n' as end-of-line, and ignores lineterminator.)
// The below example settings are the defaults in the csv modules, and will be used if a dialect can't be detected
// "dialects": {
// "example": {
// "delimiter": ",",
// "quotechar": "\"",
// "escapechar": "\\",
// "doublequote": false
// "skipinitialspace": false,
// "strict": false,
// "quoting": "QUOTE_MINIMAL"
// }
// },
// Mandate a dialect for DataConverter to use.
// Could be a dialect defined in your settings file, or one defined in the csv module ('excel', 'excel_tab', 'unix_dialect').
// This may be useful when specifying custom commands in a .sublime-commands file.
// "use_dialect": "example",
// Modern HTML served with a proper character encoding can accept UTF-8 characters.
// If you're using another charset for your html, set this to false.
// When false, the DataConverter 'to HTML Table' function will escape non-ascii characters (e.g. – for –)
// (XML is always returned with escaped characters.)
"html_utf8": true,
// DataConverter will try to detect the delimiter used. If it has a problem, it will fall back on this value.
// This must be one character long. Use "\t" for tab.
"delimiter": ",",
// For formats where keys can't have spaces, field names will be joined with this character.
// By default, an underscore is used, e.g. 'Col Name' becomes 'Col_Name'
// An empty string is OK
"header_joiner": "_",
// If true: after converting, deselects and moves the pointer to the top.
// If false: leaves selection(s) in place
"deselect_after": false
// For some conversions (SQL, ASP), DataConverter must name the table or array being created
// By default, it's called 'DataConverter', set your own value here
// "default_variable": "DataConverter"
}