forked from tecosaur/LaTeX-Utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
263 lines (263 loc) · 11.8 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
{
"name": "latex-utilities",
"displayName": "LaTeX Utilities",
"description": "An add-on to LaTeX Workshop that provides some fancy features that are less vital to the basic experience editing a LaTeX document, but can be rather nice to have.",
"icon": "icon.png",
"version": "0.4.11",
"publisher": "tecosaur",
"license": "MIT",
"homepage": "https://github.com/tecosaur/LaTeX-Utilities",
"repository": {
"type": "git",
"url": "https://github.com/tecosaur/LaTeX-Utilities.git"
},
"engines": {
"vscode": "^1.63.1"
},
"categories": [
"Programming Languages",
"Snippets"
],
"keywords": [
"latex",
"tex",
"hint"
],
"activationEvents": [
"onLanguage:tex",
"onLanguage:latex",
"onLanguage:doctex"
],
"main": "./out/main.js",
"contributes": {
"commands": [
{
"command": "latex-utilities.editLiveSnippetsFile",
"title": "Edit Live Snippets file",
"category": "LaTeX Utilities"
},
{
"command": "latex-utilities.resetLiveSnippetsFile",
"title": "Reset Live Snippets file",
"category": "LaTeX Utilities"
},
{
"command": "latex-utilities.compareLiveSnippetsFile",
"title": "Compare user Live Snippets file to default",
"category": "LaTeX Utilities"
},
{
"command": "latex-utilities.formattedPaste",
"title": "Paste formatted content",
"category": "LaTeX Utilities"
},
{
"command": "latex-utilities.citeZotero",
"title": "Cite from Zotero",
"category": "LaTeX Utilities"
},
{
"command": "latex-utilities.openInZotero",
"title": "Open in Zotero",
"category": "LaTeX Utilities"
},
{
"command": "latex-utilities.selectWordcountFormat",
"title": "Select wordcount format",
"category": "LaTeX Utilities"
}
],
"keybindings": [
{
"key": "ctrl+shift+v",
"mac": "cmd+shift+v",
"command": "latex-utilities.formattedPaste",
"when": "!config.latex-utilities.formattedPaste.useAsDefault && editorTextFocus && editorLangId == 'latex'"
},
{
"key": "ctrl+v",
"mac": "cmd+v",
"command": "latex-utilities.formattedPaste",
"when": "config.latex-utilities.formattedPaste.useAsDefault && editorTextFocus && editorLangId == 'latex'"
}
],
"configuration": {
"title": "LaTeX Utils",
"properties": {
"latex-utilities.formattedPaste.tableColumnType": {
"type": "string",
"default": "l",
"markdownDescription": "Tabular column type to use, e.g. **`l`**/**`r`**/**`c`**…"
},
"latex-utilities.formattedPaste.tableBooktabsStyle": {
"type": "boolean",
"default": true,
"markdownDescription": "Use the booktabs commands `\\toprule`, `\\midrule`, and `\\bottomrule`"
},
"latex-utilities.formattedPaste.tableHeaderRows": {
"type": "integer",
"default": 1,
"markdownDescription": "Number of header rows to assume. Set to **`0`** to disable."
},
"latex-utilities.formattedPaste.customTableDelimiter": {
"type": "string",
"default": "\t",
"minLength": 1,
"markdownDescription": "A custom delimiter to try for tables (in addition to `\\t`, `,` and `|` which we always try)"
},
"latex-utilities.formattedPaste.tableDelimiterPrompt": {
"type": "boolean",
"default": false,
"markdownDescription": "Whether to be prompted for a custom delimiter if the set table delimiters didn't work"
},
"latex-utilities.formattedPaste.maxLineLength": {
"type": "integer",
"default": 80,
"markdownDescription": "Try to fit within the given line length"
},
"latex-utilities.formattedPaste.image.template": {
"type": [
"string",
"array"
],
"default": "\\includegraphics{${imageFilePath}}",
"markdownDescription": "The template to use for pasting the image (use an array for multiline strings), use `${imageFilePath}` to represent the image file. Can also use `${imageFileNameWithoutExt}`"
},
"latex-utilities.formattedPaste.imagePathOverride": {
"type": "string",
"default": "",
"markdownDescription": "Override the image path to use for the image template. If empty, the path will be read automatically from the source file. You can use ${currentFileDir} to represent the current source file dir."
},
"latex-utilities.formattedPaste.useAsDefault": {
"type": "boolean",
"default": false,
"markdownDescription": "Make `ctrl`+`v` perform a formatted paste, and `ctrl`+`shift`+`v` perform a 'raw' (normal) paste."
},
"latex-utilities.liveReformat.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Apply live text replacements to make writing latex maths easier (e.g. `xx` → `\\times`). Also see the command \"Edit Live Snippets File\""
},
"latex-utilities.countWord.path": {
"type": "string",
"default": "texcount",
"markdownDescription": "Define the location of TeXCount executive file/script.\nThis command will be joint with `latex-utilities.countWord.args` and required arguments to form a complete command of TeXCount."
},
"latex-utilities.countWord.docker.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Use Docker to run TeXCount. This requires Docker to be installed and running. We will use docker config from LaTeX-Workshop."
},
"latex-utilities.countWord.args": {
"type": "array",
"default": [],
"markdownDescription": "TeXCount arguments to count words in LaTeX document of the entire project from the root file, or the current document.\nArguments must be in separate strings in the array. Additional arguments, i.e., `-merge %DOC%` for the project and the current document path for counting current file will be appended when constructing the command."
},
"latex-utilities.countWord.format": {
"type": "string",
"default": "${words} Words",
"markdownDescription": "Format of the statusbar item. Set empty (`\"\"`) to disable."
},
"latex-utilities.message.update.show": {
"type": "boolean",
"default": "true",
"markdownDescription": "Notify you when the extension updates"
},
"latex-utilities.message.error.show": {
"type": "boolean",
"default": "true",
"markdownDescription": "Show error messages"
},
"latex-utilities.texdef.enabled": {
"type": "boolean",
"default": "true",
"markdownDescription": "Use `texdef` to find definitions for LaTeX macros"
},
"latex-utilities.zotero.zoteroUrl": {
"type": "string",
"default": "http://localhost:23119",
"markdownDescription": "URL for the Zotero HTTP server"
},
"latex-utilities.zotero.latexCommand": {
"type": "string",
"default": "autocite",
"markdownDescription": "LaTeX citation command to use (`cite`, `parencite`, `autocite`, etc.)"
},
"latex-utilities.zotero.citeMethod": {
"type": "string",
"enum": [
"zotero",
"vscode"
],
"enumDescriptions": [
"Use the Zotero Cite as you Write popup",
"Use a picker within VS Code"
],
"default": "zotero",
"markdownDescription": "Controls how Zotero citations are chosen"
}
}
},
"jsonValidation": [
{
"fileMatch": "latexUtilsLiveSnippets.json",
"url": "./resources/liveSnippetSchema.json"
}
]
},
"scripts": {
"package": "vsce package",
"vscode:prepublish": "yarn esbuild-base --minify",
"esbuild-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "yarn esbuild-base --sourcemap",
"esbuild-watch": "yarn esbuild-base --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/fs-extra": "^8.1.0",
"@types/glob": "^7.1.3",
"@types/got": "^9.6.11",
"@types/mocha": "^5.2.6",
"@types/node": "^17.0.8",
"@types/vscode": "^1.45.0",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"esbuild": "^0.14.49",
"eslint": "^8.29.0",
"glob": "^7.1.6",
"mocha": "^6.2.2",
"typescript": "^3.9.7",
"vsce": "^2.9.2"
},
"dependencies": {
"@types/tmp": "^0.2.3",
"axios": "^0.24.0",
"csv-parser": "^2.3.3",
"fs-extra": "^8.1.0",
"latex-utensils": "^4.1.0",
"tmp": "^0.2.1",
"vscode-extension-telemetry": "^0.1.2"
},
"badges": [
{
"url": "https://vsmarketplacebadges.dev/version-short/tecosaur.latex-utilities.svg?style=flat-square&color=579983&logo=visual-studio-code&logoColor=C6EDE2",
"href": "https://marketplace.visualstudio.com/items?itemName=tecosaur.latex-utilities&",
"description": "VSCode Marketplace"
},
{
"url": "https://vsmarketplacebadges.dev/downloads-short/tecosaur.latex-utilities.svg?style=flat-square&color=579983",
"href": "https://vsmarketplacebadges.dev/downloads-short/tecosaur.latex-utilities.svg",
"description": "version"
},
{
"url": "https://vsmarketplacebadges.dev/installs-short/tecosaur.latex-utilities.svg?style=flat-square&color=579983",
"href": "https://marketplace.visualstudio.com/items?itemName=tecosaur.latex-utilities&",
"description": "installs"
},
{
"url": "https://vsmarketplacebadges.dev/rating-short/tecosaur.latex-utilities.svg?style=flat-square&color=579983",
"href": "https://marketplace.visualstudio.com/items?itemName=tecosaur.latex-utilities&",
"description": "rating"
}
]
}