-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
180 lines (180 loc) · 5.52 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
{
"name": "md-paste-enhanced",
"displayName": "paste image anywhere",
"description": "use ctrl+v to paste image directly in any file",
"version": "2.13.0",
"engines": {
"vscode": "^1.71.0"
},
"publisher": "dzylikecode",
"author": {
"name": "Dz",
"email": "[email protected]"
},
"license": "MIT",
"icon": "res/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image"
},
"homepage": "https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image/blob/master/README.md",
"bugs": {
"url": "https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image/issues"
},
"keywords": [
"paste",
"image",
"markdown",
"typst",
"paste image",
"keybindings",
"WSL",
"subsystem"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Markdown-Paste-Enhanced",
"type": "object",
"properties": {
"mdPasteEnhanced.path": {
"type": "string",
"default": "${currentFileDir}/assets",
"description": "The destination to save image file. You can use some variables to customize the path. See More in https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image",
"scope": "resource"
},
"mdPasteEnhanced.basePath": {
"type": "string",
"default": "${currentFileDir}",
"description": "The base path of image url. You can use some variables to customize the path. See More in https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image",
"scope": "resource"
},
"mdPasteEnhanced.defaultName": {
"type": "string",
"default": "Y-MM-DD-HH-mm-ss",
"description": "The default name of image file. See more in https://momentjs.com/docs/#/displaying/format/",
"scope": "resource"
},
"mdPasteEnhanced.renderPattern": {
"type": "string",
"default": "![${userVar}](${imagePath})",
"description": "The pattern of image url. The ${imagePath} is the path relative to the base path. Deprecated!. Set renderMap instead",
"scope": "resource"
},
"mdPasteEnhanced.renderMap": {
"type": "array",
"default": [
"**/*.md => ![${userVar}](${imagePath})",
"**/*.typ => #image(\"${imagePath}\"${userVar})",
"**/* => ${imagePath}"
],
"items": {
"type": "string"
},
"description": "different file type use different render pattern. eg. *.md => ![](${imagePath}), it will override configurate `renderPattern`. Order is important",
"scope": "resource"
},
"mdPasteEnhanced.confirmPattern": {
"type": "string",
"default": "None",
"enum": [
"None",
"Just Name",
"Full Path"
],
"description": "the pattern that you want to confirm when you paste image",
"scope": "resource"
},
"mdPasteEnhanced.ImageType": {
"type": "string",
"default": ".png",
"enum": [
".png",
".jpg"
],
"description": "The type of image file you want to save",
"scope": "resource"
},
"mdPasteEnhanced.createFileExt": {
"type": "string",
"default": ".excalidraw.svg",
"description": "The type of image file you want to create",
"scope": "resource"
},
"mdPasteEnhanced.editMap": {
"type": "array",
"default": [
"mspaint *.png *.jpg *.jpeg *.bmp"
],
"items": {
"type": "string"
},
"description": "The edit software you want to use to edit image file. eg. D:\\Program Files\\draw.io\\draw.io.exe --enable-plugins *.drawio.svg",
"scope": "resource"
}
}
},
"commands": [
{
"command": "md-paste-enhanced.paste",
"title": "paste image from clipboard"
},
{
"command": "md-paste-enhanced.create",
"title": "create an empty image file"
}
],
"menus": {
"editor/context": [
{
"command": "md-paste-enhanced.create",
"group": "md-paste-enhanced"
}
]
},
"keybindings": [
{
"key": "ctrl+v",
"command": "md-paste-enhanced.paste",
"when": "editorTextFocus"
}
]
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"pack": "vsce package",
"build": "npm run vscode:prepublish && npm run pack",
"test": "node ./test/runTest.js",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.js --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "14.x",
"@types/vscode": "^1.71.0",
"@vscode/test-electron": "^2.1.3",
"esbuild": "^0.15.10",
"eslint": "^8.11.0",
"glob": "^7.2.0",
"mocha": "^9.2.2",
"typescript": "^4.5.5",
"vite": "^3.1.8"
},
"dependencies": {
"is-wsl": "^3.1.0",
"minimatch": "^9.0.3",
"moment": "^2.29.4",
"vsce": "^2.15.0"
}
}