-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
246 lines (246 loc) · 10.6 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
{
"name": "markdowntable",
"publisher": "TakumiI",
"displayName": "Markdown Table",
"description": "Add features to edit markdown table.",
"version": "0.12.0",
"icon": "icon.drawio.png",
"repository": {
"type": "git",
"url": "https://github.com/takumisoft68/vscode-markdown-table"
},
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:markdown",
"onLanguage:mdx",
"onLanguage:quarto"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "markdowntable.format",
"title": "Markdown Table: Format all tables."
},
{
"command": "markdowntable.tsvToTable",
"title": "Markdown Table: Convert TSV to table."
},
{
"command": "markdowntable.csvToTable",
"title": "Markdown Table: Convert CSV to table."
},
{
"command": "markdowntable.insertRight",
"title": "Markdown Table: Insert column to the right."
},
{
"command": "markdowntable.insertLeft",
"title": "Markdown Table: Insert column to the left."
},
{
"command": "markdowntable.nextCell",
"title": "Markdown Table: Navigate to next cell."
},
{
"command": "markdowntable.prevCell",
"title": "Markdown Table: Navigate to previous cell."
},
{
"command": "markdowntable.nextCellWithoutFormat",
"title": "Markdown Table: Navigate to next cell (without auto format)."
},
{
"command": "markdowntable.prevCellWithoutFormat",
"title": "Markdown Table: Navigate to previous cell (without auto format)."
},
{
"command": "markdowntable.alignLeft",
"title": "Markdown Table: Align to Left."
},
{
"command": "markdowntable.alignCenter",
"title": "Markdown Table: Align to Center."
},
{
"command": "markdowntable.alignRight",
"title": "Markdown Table: Align to Right."
},
{
"command": "markdowntable.moveLeft",
"title": "Markdown Table: Move to Left."
},
{
"command": "markdowntable.moveRight",
"title": "Markdown Table: Move to Right."
}
],
"keybindings": [
{
"command": "markdowntable.nextCell",
"key": "tab",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible && !inSnippetMode && markdowntable.contextkey.selection.InMarkdownTable"
},
{
"command": "markdowntable.prevCell",
"key": "shift+tab",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible && !inSnippetMode && markdowntable.contextkey.selection.InMarkdownTable"
}
],
"menus": {
"editor/context": [
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.config.showMenu.format",
"command": "markdowntable.format",
"group": "markdowntable@1"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && editorHasSelection && markdowntable.contextkey.config.showMenu.tsvToTable",
"command": "markdowntable.tsvToTable",
"group": "markdowntable@2"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && editorHasSelection && markdowntable.contextkey.config.showMenu.csvToTable",
"command": "markdowntable.csvToTable",
"group": "markdowntable@2"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.selection.InMarkdownTable && markdowntable.contextkey.config.showMenu.insertRight",
"command": "markdowntable.insertRight",
"group": "markdowntable@3"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.selection.InMarkdownTable && markdowntable.contextkey.config.showMenu.insertLeft",
"command": "markdowntable.insertLeft",
"group": "markdowntable@4"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.selection.InMarkdownTable && markdowntable.contextkey.config.showMenu.alignLeft",
"command": "markdowntable.alignLeft",
"group": "markdowntable@5"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.selection.InMarkdownTable && markdowntable.contextkey.config.showMenu.alignCenter",
"command": "markdowntable.alignCenter",
"group": "markdowntable@6"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.selection.InMarkdownTable && markdowntable.contextkey.config.showMenu.alignRight",
"command": "markdowntable.alignRight",
"group": "markdowntable@7"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.selection.InMarkdownTable && markdowntable.contextkey.config.showMenu.moveLeft",
"command": "markdowntable.moveLeft",
"group": "markdowntable@8"
},
{
"when": "markdowntable.contextkey.active.IsSupportedLanguage && markdowntable.contextkey.selection.InMarkdownTable && markdowntable.contextkey.config.showMenu.moveRight",
"command": "markdowntable.moveRight",
"group": "markdowntable@8"
}
]
},
"configuration": {
"title": "Markdown Table",
"properties": {
"markdowntable.alignData": {
"type": "boolean",
"default": true,
"description": "Align data in the table when formatting"
},
"markdowntable.alignColumnHeader": {
"type": "boolean",
"default": true,
"description": "Align column header in the table when formatting"
},
"markdowntable.ignoreCodeblock": {
"type": "boolean",
"default": true,
"description": "Ignore tables in codeblock"
},
"markdowntable.showMenu.format": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Format all tables\"."
},
"markdowntable.showMenu.tsvToTable": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Convert TSV to table\"."
},
"markdowntable.showMenu.csvToTable": {
"type": "boolean",
"default": false,
"description": "Show command in context menu: \"Convert CSV to table\"."
},
"markdowntable.showMenu.insertRight": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Insert column to the right\"."
},
"markdowntable.showMenu.insertLeft": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Insert column to the left\"."
},
"markdowntable.showMenu.alignLeft": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Align to Left\"."
},
"markdowntable.showMenu.alignCenter": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Align to Center\"."
},
"markdowntable.showMenu.alignRight": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Align to Right\"."
},
"markdowntable.showMenu.moveLeft": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Move to Left\"."
},
"markdowntable.showMenu.moveRight": {
"type": "boolean",
"default": true,
"description": "Show command in context menu: \"Move to Right\"."
},
"markdowntable.formatOnSave": {
"type": "boolean",
"default": false,
"description": "Format all tables on save."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.6",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.51.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^5.2.2",
"vscode-test": "^1.6.1"
}
}