-
Notifications
You must be signed in to change notification settings - Fork 129
/
package.json
147 lines (147 loc) · 5 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
{
"name": "vscode-paste-image",
"displayName": "Paste Image",
"description": "paste image from clipboard directly",
"version": "1.0.4",
"publisher": "mushan",
"author": {
"name": "mushan",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/mushanshitiancai/vscode-paste-image.git"
},
"homepage": "https://github.com/mushanshitiancai/vscode-paste-image/blob/master/README.md",
"bugs": {
"url": "https://github.com/mushanshitiancai/vscode-paste-image/issues"
},
"icon": "res/icon.png",
"galleryBanner": {
"color": "#252526",
"theme": "dark"
},
"keywords": [
"paste",
"image",
"markdown",
"paste image",
"keybindings"
],
"engines": {
"vscode": "^1.0.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.pasteImage"
],
"main": "./out/src/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Paste Image Configuration",
"properties": {
"pasteImage.path": {
"type": "string",
"default": "${currentFileDir}",
"description": "The destination to save image file.You can use variable ${currentFileDir} and ${projectRoot}. ${currentFileDir} will be replace by the path of directory that contain current editing file. ${projectRoot} will be replace by path of the project opened in vscode."
},
"pasteImage.basePath": {
"type": "string",
"default": "${currentFileDir}",
"description": "The base path of image url.You can use variable ${currentFileDir} and ${projectRoot}. ${currentFileDir} will be replace by the path of directory that contain current editing file. ${projectRoot} will be replace by path of the project opened in vscode. If you set basePath to empty String, it will insert absolute path to file."
},
"pasteImage.forceUnixStyleSeparator": {
"type": "boolean",
"default": true,
"description": "Force set the file separator styel to unix style. If set false, separator styel will follow the system style."
},
"pasteImage.prefix": {
"type": "string",
"default": "",
"description": "The string prepend to the resolved image path before paste."
},
"pasteImage.suffix": {
"type": "string",
"default": "",
"description": "The string append to the resolved image path before paste."
},
"pasteImage.defaultName": {
"type": "string",
"default": "Y-MM-DD-HH-mm-ss",
"description": "The default image file name. The value of this config will be pass to the 'format' function of moment library(a js time manipulation library), you can read document https://momentjs.com/docs/#/displaying/format/ for advanced usage."
},
"pasteImage.namePrefix": {
"type": "string",
"default": "",
"description": "The string prepend to the image file name."
},
"pasteImage.nameSuffix": {
"type": "string",
"default": "",
"description": "The string append to the image file name."
},
"pasteImage.encodePath": {
"type": "string",
"enum": [
"none",
"urlEncode",
"urlEncodeSpace"
],
"default": "urlEncodeSpace",
"description": "The string append to the image file name.How to encode image path before insert to editor. Support options: none, urlEncode, urlEncodeSpace"
},
"pasteImage.insertPattern": {
"type": "string",
"default": "${imageSyntaxPrefix}${imageFilePath}${imageSyntaxSuffix}",
"description": "The pattern of string that would be pasted to text."
},
"pasteImage.showFilePathConfirmInputBox": {
"type": "boolean",
"default": false,
"description": "Set to true if you want to be able to change the file path or name prior to saving the file to disk"
},
"pasteImage.filePathConfirmInputBoxMode": {
"type": "string",
"enum": [
"fullPath",
"onlyName"
],
"default": "fullPath",
"description": "Set the mode of file path confirm inputbox"
}
}
},
"commands": [
{
"command": "extension.pasteImage",
"title": "Paste Image"
}
],
"keybindings": [
{
"command": "extension.pasteImage",
"key": "ctrl+alt+v",
"mac": "cmd+alt+v",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"dependencies": {
"copy-paste": "^1.2.0",
"fs-extra": "^3.0.1",
"moment": "^2.14.1",
"upath": "^1.0.0"
},
"devDependencies": {
"typescript": "^1.8.5",
"vscode": "^0.11.0"
}
}