-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
190 lines (190 loc) · 7.21 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
{
"name": "paste-replaced",
"displayName": "Paste Replaced",
"description": "Paste text replaced using regular expressions that you configure, optionally simulating that you are typing it. Works anywhere in VS Code, not just the editors. E.g. good for fast typing canned text in your presentations and a lot of other cases.",
"version": "1.1.14",
"publisher": "betterthantomorrow",
"author": {
"name": "Peter Strömberg",
"email": "pez@pezius.com"
},
"icon": "assets/paste-replaced-icon-128x128.png",
"repository": {
"type": "git",
"url": "https://github.com/PEZ/paste-replaced.git"
},
"engines": {
"vscode": "^1.67.2"
},
"categories": [
"Other"
],
"keywords": [
"Presentation",
"Clipboard",
"Paste",
"Regex",
"Fast Typing",
"Canned",
"Replace",
"Substitute"
],
"activationEvents": [],
"main": "out/extension.js",
"contributes": {
"commands": [
{
"command": "paste-replaced.paste",
"category": "Paste Replaced",
"title": "Paste..."
},
{
"command": "paste-replaced.pasteCanned",
"category": "Paste Replaced",
"title": "Paste From Canned..."
},
{
"command": "paste-replaced.pasteText",
"category": "Paste Replaced",
"title": "Paste Text"
},
{
"command": "paste-replaced.pasteSelectionReplaced",
"category": "Paste Replaced",
"title": "Copy Selected Text and Paste Replaced..."
},
{
"command": "paste-replaced.interruptTyping",
"category": "Paste Replaced",
"title": "Interrupt ongoing typing",
"enablement": "paste-replaced.isTyping"
}
],
"keybindings": [
{
"command": "paste-replaced.paste",
"key": "ctrl+alt+v space"
},
{
"command": "paste-replaced.interruptTyping",
"key": "ctrl+alt+v escape",
"when": "paste-replaced.isTyping"
},
{
"command": "paste-replaced.pasteSelectionReplaced",
"key": "ctrl+alt+v s"
}
],
"configuration": [
{
"type": "object",
"title": "Paste Replaced",
"properties": {
"paste-replaced.replacers": {
"type": "array",
"markdownDescription": "An array of replacers. Each replacer is an object with the following properties:\n\n* `name`: A name for the replacer\n* `replacements`: The replacements to be performed before pasting\n* `simulateTypingSpeed`: Simulated typing speed, if any\n\nThe name of each replacer will be used in the menu that is shown when you invoke the command `Paste Replaced...`.",
"items": {
"type": "object",
"markdownDescription": "A replacer has a `name` and a `replacements` array. The `name` is used to identify the replacer in the UI.",
"properties": {
"name": {
"type": "string",
"markdownDescription": "The name of the replacer. This is only used for display purposes in the UI."
},
"replacements": {
"type": [
"array",
"string"
],
"markdownDescription": "An array of `[search, replace, flags?]` tuples. These will be applied to the text in the order they are configured. Or a string, which will simply paste the string.",
"items": {
"type": "array",
"markdownDescription": "A `[search, replace, flags?]` tuple where `search` is a string that compiles to a JS regex pattern, `replace` is a string that compiles to a regex replace pattern, and `flags?` is an optional string of regex flags. Only the first occurrence of `search` will be replaced by `replace`, unless the `g` flag is provided.",
"minItems": 2,
"maxItems": 3
}
},
"simulateTypingSpeed": {
"type": "string",
"markdownDescription": "Should the text be inserted simulating that it is being ”typed” in? If so, how fast should the typing be?",
"enum": [
"instant",
"fast",
"intermediate",
"slow"
],
"enumDescriptions": [
"Don't simulate typing, just paste it all",
"Pour the text in fast",
"Type the text neither fast, nor slow",
"Slowly type the text in"
],
"default": "instant"
},
"skipPaste": {
"type": "boolean",
"markdownDescription": "Should we skip pasting the resulting text? It will only be copied to the clipboard.",
"default": false
}
},
"required": [
"name",
"replacements"
]
}
},
"paste-replaced.simulateTypingSpeed": {
"type": "string",
"markdownDescription": "Should the text be inserted simulating that it is being ”typed” in? If so, how fast should the typing be?",
"enum": [
"instant",
"fast",
"intermediate",
"slow"
],
"enumDescriptions": [
"Don't simulate typing, just paste it all",
"Pour the text in fast",
"Type the text neither fast, nor slow",
"Slowly type the text in"
],
"default": "instant"
},
"paste-replaced.skipPaste": {
"type": "boolean",
"markdownDescription": "Should we skip pasting the resulting text? It will only be copied to the clipboard.",
"default": false
},
"paste-replaced.canned-texts-file": {
"type": "string",
"markdownDescription": "The path to an EDN file that contains a vector (array) of text-items to be pasted from (replaced or verbartim). Each text-item is a map with the entries `:name` and `:text`. The `:name` will be used in the menu that is shown when you invoke the command **Paste Replaced From Texts...**.",
"default": "paste-replaced-canned-texts.edn"
}
}
}
]
},
"scripts": {
"clean": "rimraf .cpcache .shadow-cljs/ out/",
"watch": "npx shadow-cljs -d cider/cider-nrepl:0.50.2 watch :extension :test-watch",
"test": "node out/extension-tests.js",
"pretest": "npm run compile",
"prewatch": "npm run clean",
"compile": "npx shadow-cljs compile :extension :test-compile",
"precompile": "npm run clean",
"release-test": "node out/extension-tests.js",
"release": "npx shadow-cljs release :extension :test-compile",
"package": "npx vsce package --allow-star-activation --githubBranch master",
"vscode:prepublish": "npm run clean && npm run release"
},
"dependencies": {
"@vscode/codicons": "^0.0.36"
},
"devDependencies": {
"rimraf": "^6.0.1",
"shadow-cljs": "^2.28.18",
"@vscode/vsce": "^3.2.1",
"@vscode/test-electron": "^2.4.1",
"ovsx": "^0.10.0"
}
}