-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
158 lines (158 loc) · 5.06 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
{
"name": "code-cmd-repeat",
"displayName": "Repeat terminal commands",
"description": "Repeat terminal commands with easy shortcuts from the focused text editor.",
"version": "0.2.1",
"publisher": "scheiblingco",
"icon": "images/icon128.png",
"engines": {
"vscode": "^1.70.0"
},
"repository": {
"type": "git",
"url": "https://github.com/scheiblingco/code-cmd-repeat.git"
},
"bugs": {
"url": "https://github.com/scheiblingco/code-cmd-repeat/issues"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished",
"onCommand:code-cmd-repeat.saveAndRepeatLastCommand",
"onCommand:code-cmd-repeat.repeatLastCommand",
"onCommand:code-cmd-repeat.sudoRepeatLastCommand",
"onCommand:code-cmd-repeat.clearAndRepeatLastCommand",
"onCommand:code-cmd-repeat.clearAndSudoRepeatLastCommand",
"onCommand:code-cmd-repeat.stopCurrentCommand",
"onCommand:code-cmd-repeat.restartCurrentCommand"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Repeat Terminal",
"properties": {
"code-cmd-repeat.alwaysClearBeforeRun": {
"type": "boolean",
"default": false,
"description": "Always clear terminal with Ctrl+C/Cmd+C before running command (text in command row, running commands, etc.)"
},
"code-cmd-repeat.repetitionCommand": {
"type": "string",
"default": "!!",
"description": "Command to use for repetition of last command. You can use [enter] to add additional commands.",
"scope": "workspace"
},
"code-cmd-repeat.repetitionCommandNth": {
"type": "string",
"default": "!-[num]",
"description": "Command to use for repetition of last Nth command (use [num] to insert number). You can use [enter] to add additional commands.",
"scope": "workspace"
},
"code-cmd-repeat.clearTerminalCommand": {
"type": "string",
"default": "clear -x",
"description": "Command to use for clearing the terminal.",
"scope": "workspace"
},
"code-cmd-repeat.sudoCommand": {
"type": "string",
"default": "sudo",
"description": "Which command to use for privilege elevation.",
"scope": "workspace"
}
}
},
"commands": [
{
"command": "code-cmd-repeat.saveAndRepeatLastCommand",
"title": "Save the active file and repeat the last run command in the terminal"
},
{
"command": "code-cmd-repeat.repeatLastCommand",
"title": "Repeat the last run command in the terminal"
},
{
"command": "code-cmd-repeat.sudoRepeatLastCommand",
"title": "Repeat the last run command in the terminal with sudo"
},
{
"command": "code-cmd-repeat.clearAndRepeatLastCommand",
"title": "Clear the terminal and repeat the last command"
},
{
"command": "code-cmd-repeat.clearAndSudoRepeatLastCommand",
"title": "Clear the terminal and repeat the last command with sudo"
},
{
"command": "code-cmd-repeat.stopCurrentCommand",
"title": "Stop the current running command"
},
{
"command": "code-cmd-repeat.restartCurrentCommand",
"title": "Restart the current running command"
}
],
"keybindings": [
{
"command": "code-cmd-repeat.saveAndRepeatLastCommand",
"key": "ctrl+r ctrl+r",
"mac": "cmd+r cmd+r"
},
{
"command": "code-cmd-repeat.repeatLastCommand",
"key": "ctrl+r ctrl+e",
"mac": "cmd+r cmd+e"
},
{
"command": "code-cmd-repeat.sudoRepeatLastCommand",
"key": "ctrl+r ctrl+s",
"mac": "cmd+r cmd+s"
},
{
"command": "code-cmd-repeat.clearAndRepeatLastCommand",
"key": "ctrl+r ctrl+c",
"mac": "cmd+r cmd+c"
},
{
"command": "code-cmd-repeat.clearAndSudoRepeatLastCommand",
"key": "ctrl+r ctrl+x",
"mac": "cmd+r cmd+x"
},
{
"command": "code-cmd-repeat.stopCurrentCommand",
"key": "ctrl+r ctrl+a",
"mac": "cmd+r cmd+a"
},
{
"command": "code-cmd-repeat.restartCurrentCommand",
"key": "ctrl+r ctrl+q",
"mac": "cmd+r cmd+q"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"build": "vsce package"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "16.x",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.24.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"typescript": "^4.8.4",
"vsce": "^2.11.0"
}
}