tabby-quick-buttons 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +28 -2
- package/dist/index.js +69 -0
- package/dist/quickButtons.component.js +392 -0
- package/dist/quickButtons.view.js +265 -0
- package/package.json +35 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 vzpd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Tabby Quick Buttons
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Source code and issue tracker are available on [GitHub](https://github.com/vzpd/tabby-quick-buttons).
|
|
4
|
+
|
|
5
|
+
Hover over the floating button in a Tabby terminal to open the command panel. The button starts in the lower-right corner. Drag it anywhere in the window to save a new position. Click the **Quick Buttons** icon in the Tabby toolbar to keep the panel open.
|
|
6
|
+
|
|
7
|
+
- **Shared** groups are available in every terminal. Add commands directly or organize them in nested groups.
|
|
8
|
+
- **Current profile** groups are available only in the matching Tabby profile. Renaming the profile keeps the association. Temporary connections without a profile ID can use shared groups.
|
|
9
|
+
- Select **Manage** to add, edit, or delete commands and groups. Drag a command onto a group heading to move it. Dropping onto **Shared** or **Current profile** moves it to the root of that scope and changes where it is available. Select **Done** to return to hover mode.
|
|
10
|
+
- Each command has a display alias and a single line of terminal text. **Press Enter after inserting** is enabled by default. Turn it off to insert the command for review or editing.
|
|
11
|
+
|
|
12
|
+
Use shortcuts at an empty shell prompt. The plugin stores commands in Tabby's configuration. Keep passwords and tokens out of command text.
|
|
13
|
+
|
|
14
|
+
## Install locally
|
|
15
|
+
|
|
16
|
+
Build the package in the project directory:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm ci
|
|
20
|
+
npm pack
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
In Tabby, go to **Settings → Plugins** and open the plugin directory. Install the package from that directory using the path to the generated archive:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npm install /absolute/path/to/tabby-quick-buttons-1.0.0.tgz
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Quit and reopen Tabby, then open a terminal. The plugin uses the Angular and terminal APIs bundled with Tabby.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const common_1 = require("@angular/common");
|
|
10
|
+
const core_1 = require("@angular/core");
|
|
11
|
+
const tabby_core_1 = require("tabby-core");
|
|
12
|
+
const rxjs_1 = require("rxjs");
|
|
13
|
+
const quickButtons_component_1 = require("./quickButtons.component");
|
|
14
|
+
class QuickButtonsConfigProvider extends tabby_core_1.ConfigProvider {
|
|
15
|
+
defaults = {
|
|
16
|
+
quickButtons: { scopes: [] },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
let QuickButtonsToolbar = class QuickButtonsToolbar extends tabby_core_1.ToolbarButtonProvider {
|
|
20
|
+
opened = new rxjs_1.Subject();
|
|
21
|
+
provide() {
|
|
22
|
+
return [{
|
|
23
|
+
title: 'Quick Buttons',
|
|
24
|
+
icon: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m4 7 5 5-5 5m8 0h7"/></svg>',
|
|
25
|
+
click: () => this.opened.next(),
|
|
26
|
+
}];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
QuickButtonsToolbar = __decorate([
|
|
30
|
+
(0, core_1.Injectable)()
|
|
31
|
+
], QuickButtonsToolbar);
|
|
32
|
+
function mountQuickButtons(app, injector, document, toolbar) {
|
|
33
|
+
let component;
|
|
34
|
+
return () => {
|
|
35
|
+
if (component) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const host = document.createElement('tabby-quick-buttons');
|
|
39
|
+
document.body.append(host);
|
|
40
|
+
component = (0, core_1.createComponent)(quickButtons_component_1.QuickButtonsComponent, { environmentInjector: injector, hostElement: host });
|
|
41
|
+
app.attachView(component.hostView);
|
|
42
|
+
const instance = component.instance;
|
|
43
|
+
const launch = toolbar.opened.subscribe(() => instance.togglePinned());
|
|
44
|
+
component.onDestroy(() => {
|
|
45
|
+
launch.unsubscribe();
|
|
46
|
+
host.remove();
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
let QuickButtonsPlugin = class QuickButtonsPlugin {
|
|
51
|
+
};
|
|
52
|
+
QuickButtonsPlugin = __decorate([
|
|
53
|
+
(0, core_1.NgModule)({
|
|
54
|
+
imports: [common_1.CommonModule],
|
|
55
|
+
declarations: [quickButtons_component_1.QuickButtonsComponent],
|
|
56
|
+
providers: [
|
|
57
|
+
{ provide: tabby_core_1.ConfigProvider, useClass: QuickButtonsConfigProvider, multi: true },
|
|
58
|
+
QuickButtonsToolbar,
|
|
59
|
+
{ provide: tabby_core_1.ToolbarButtonProvider, useExisting: QuickButtonsToolbar, multi: true },
|
|
60
|
+
{
|
|
61
|
+
provide: core_1.APP_BOOTSTRAP_LISTENER,
|
|
62
|
+
useFactory: mountQuickButtons,
|
|
63
|
+
deps: [core_1.ApplicationRef, core_1.EnvironmentInjector, common_1.DOCUMENT, QuickButtonsToolbar],
|
|
64
|
+
multi: true,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
})
|
|
68
|
+
], QuickButtonsPlugin);
|
|
69
|
+
exports.default = QuickButtonsPlugin;
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.QuickButtonsComponent = void 0;
|
|
13
|
+
const core_1 = require("@angular/core");
|
|
14
|
+
const tabby_core_1 = require("tabby-core");
|
|
15
|
+
const tabby_terminal_1 = require("tabby-terminal");
|
|
16
|
+
const quickButtons_view_1 = require("./quickButtons.view");
|
|
17
|
+
const invalidCommandCharacters = /[\x00-\x1f\x7f-\x9f]/;
|
|
18
|
+
const ballSize = 52;
|
|
19
|
+
const edge = 8;
|
|
20
|
+
const positionKey = 'tabby-quick-buttons.floating-position';
|
|
21
|
+
const commandDragType = 'application/x-tabby-quick-button';
|
|
22
|
+
let QuickButtonsComponent = class QuickButtonsComponent {
|
|
23
|
+
app;
|
|
24
|
+
config;
|
|
25
|
+
notifications;
|
|
26
|
+
target = null;
|
|
27
|
+
scopes = [];
|
|
28
|
+
managing = false;
|
|
29
|
+
editor = null;
|
|
30
|
+
busy = false;
|
|
31
|
+
error = '';
|
|
32
|
+
dragged = null;
|
|
33
|
+
dropTarget = null;
|
|
34
|
+
movingBall = false;
|
|
35
|
+
pinned = false;
|
|
36
|
+
ballPosition = this.loadBallPosition();
|
|
37
|
+
ballDrag = null;
|
|
38
|
+
suppressBallClick = false;
|
|
39
|
+
viewport = { width: window.innerWidth, height: window.innerHeight };
|
|
40
|
+
panelContext;
|
|
41
|
+
constructor(app, config, notifications) {
|
|
42
|
+
this.app = app;
|
|
43
|
+
this.config = config;
|
|
44
|
+
this.notifications = notifications;
|
|
45
|
+
}
|
|
46
|
+
get activeTerminal() {
|
|
47
|
+
const tab = this.app.activeTab;
|
|
48
|
+
const pane = tab instanceof tabby_core_1.SplitTabComponent ? tab.getFocusedTab() : tab;
|
|
49
|
+
return pane instanceof tabby_terminal_1.BaseTerminalTabComponent ? pane : null;
|
|
50
|
+
}
|
|
51
|
+
get expanded() {
|
|
52
|
+
return this.target !== null && this.target === this.activeTerminal;
|
|
53
|
+
}
|
|
54
|
+
get settings() {
|
|
55
|
+
return this.config.store.quickButtons;
|
|
56
|
+
}
|
|
57
|
+
get layout() {
|
|
58
|
+
const { width, height } = this.viewport;
|
|
59
|
+
const x = this.clamp(this.ballPosition?.x ?? width - ballSize - 24, width - ballSize - edge);
|
|
60
|
+
const y = this.clamp(this.ballPosition?.y ?? height - ballSize - 16, height - ballSize - edge);
|
|
61
|
+
const below = y + ballSize / 2 < height / 2;
|
|
62
|
+
const anchorRight = x + ballSize / 2 >= width / 2;
|
|
63
|
+
const panelWidth = Math.min(380, anchorRight ? x + ballSize - edge : width - x - edge);
|
|
64
|
+
const panelHeight = Math.min(570, (below ? height - y : y + ballSize) - edge);
|
|
65
|
+
return { x, y, panelWidth, panelHeight, panelOffset: anchorRight ? ballSize - panelWidth : 0, below, anchorRight };
|
|
66
|
+
}
|
|
67
|
+
updateViewport() {
|
|
68
|
+
this.viewport = { width: window.innerWidth, height: window.innerHeight };
|
|
69
|
+
}
|
|
70
|
+
clamp(value, limit) {
|
|
71
|
+
return Math.max(edge, Math.min(value, limit));
|
|
72
|
+
}
|
|
73
|
+
loadBallPosition() {
|
|
74
|
+
try {
|
|
75
|
+
const position = JSON.parse(window.localStorage.getItem(positionKey) ?? 'null');
|
|
76
|
+
return Number.isFinite(position?.x) && Number.isFinite(position?.y) ? position : null;
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
startBallDrag(event) {
|
|
83
|
+
if (event.button !== 0 || !event.isPrimary) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
this.suppressBallClick = false;
|
|
87
|
+
const { x, y } = this.layout;
|
|
88
|
+
const listeners = new AbortController();
|
|
89
|
+
this.ballDrag = {
|
|
90
|
+
pointerId: event.pointerId,
|
|
91
|
+
pointer: { x: event.clientX, y: event.clientY },
|
|
92
|
+
origin: { x, y },
|
|
93
|
+
listeners,
|
|
94
|
+
};
|
|
95
|
+
const { signal } = listeners;
|
|
96
|
+
window.addEventListener('pointermove', move => this.moveBall(move), { signal });
|
|
97
|
+
window.addEventListener('pointerup', up => this.finishBallDrag(up), { signal });
|
|
98
|
+
window.addEventListener('pointercancel', cancel => this.finishBallDrag(cancel), { signal });
|
|
99
|
+
const button = event.currentTarget;
|
|
100
|
+
button.setPointerCapture(event.pointerId);
|
|
101
|
+
}
|
|
102
|
+
moveBall(event) {
|
|
103
|
+
const drag = this.ballDrag;
|
|
104
|
+
if (!drag || drag.pointerId !== event.pointerId) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const dx = event.clientX - drag.pointer.x;
|
|
108
|
+
const dy = event.clientY - drag.pointer.y;
|
|
109
|
+
if (!this.movingBall && Math.hypot(dx, dy) < 5) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
this.movingBall = true;
|
|
113
|
+
this.ballPosition = {
|
|
114
|
+
x: this.clamp(drag.origin.x + dx, this.viewport.width - ballSize - edge),
|
|
115
|
+
y: this.clamp(drag.origin.y + dy, this.viewport.height - ballSize - edge),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
finishBallDrag(event) {
|
|
119
|
+
if (this.ballDrag?.pointerId !== event.pointerId) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this.ballDrag.listeners.abort();
|
|
123
|
+
this.ballDrag = null;
|
|
124
|
+
if (!this.movingBall) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
this.movingBall = false;
|
|
128
|
+
this.suppressBallClick = true;
|
|
129
|
+
if (!this.pinned && !this.managing) {
|
|
130
|
+
this.close();
|
|
131
|
+
}
|
|
132
|
+
try {
|
|
133
|
+
window.localStorage.setItem(positionKey, JSON.stringify(this.ballPosition));
|
|
134
|
+
}
|
|
135
|
+
catch {
|
|
136
|
+
this.notifications.info('Quick Buttons moved. This window could not save its position.');
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
clickBall(event) {
|
|
140
|
+
if (event.detail && this.suppressBallClick) {
|
|
141
|
+
this.suppressBallClick = false;
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
this.togglePinned();
|
|
145
|
+
}
|
|
146
|
+
togglePinned() {
|
|
147
|
+
if (!this.activeTerminal) {
|
|
148
|
+
this.notifications.info('Open a terminal to use Quick Buttons.');
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (this.busy) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
if (this.pinned || this.managing) {
|
|
155
|
+
this.close();
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
this.open();
|
|
159
|
+
this.pinned = true;
|
|
160
|
+
}
|
|
161
|
+
open() {
|
|
162
|
+
const terminal = this.activeTerminal;
|
|
163
|
+
if (!terminal || this.expanded || this.busy || this.movingBall) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
this.target = terminal;
|
|
167
|
+
this.managing = false;
|
|
168
|
+
this.editor = null;
|
|
169
|
+
this.error = '';
|
|
170
|
+
this.refreshScopes();
|
|
171
|
+
const tab = this.app.activeTab;
|
|
172
|
+
this.panelContext?.unsubscribe();
|
|
173
|
+
this.panelContext = this.app.activeTabChange$.subscribe(() => this.close());
|
|
174
|
+
if (tab instanceof tabby_core_1.SplitTabComponent) {
|
|
175
|
+
this.panelContext.add(tab.focusChanged$.subscribe(pane => {
|
|
176
|
+
if (pane !== terminal) {
|
|
177
|
+
this.close();
|
|
178
|
+
}
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
close() {
|
|
183
|
+
this.panelContext?.unsubscribe();
|
|
184
|
+
this.target = null;
|
|
185
|
+
this.managing = false;
|
|
186
|
+
this.pinned = false;
|
|
187
|
+
this.editor = null;
|
|
188
|
+
this.error = '';
|
|
189
|
+
this.endCommandDrag();
|
|
190
|
+
this.ballDrag?.listeners.abort();
|
|
191
|
+
this.ballDrag = null;
|
|
192
|
+
this.movingBall = false;
|
|
193
|
+
}
|
|
194
|
+
ngOnDestroy() {
|
|
195
|
+
this.close();
|
|
196
|
+
}
|
|
197
|
+
leave() {
|
|
198
|
+
if (!this.managing && !this.pinned && !this.ballDrag) {
|
|
199
|
+
this.close();
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
execute(command, scope) {
|
|
203
|
+
const terminal = this.target;
|
|
204
|
+
const session = terminal?.session;
|
|
205
|
+
if (!terminal || terminal !== this.activeTerminal || !session?.open ||
|
|
206
|
+
(scope.profileId !== null && terminal.profile?.id !== scope.profileId)) {
|
|
207
|
+
this.error = 'Switch to the matching connected terminal and try again.';
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (!command.text.trim() || invalidCommandCharacters.test(command.text)) {
|
|
211
|
+
this.error = 'Enter a single line of terminal text for this command.';
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
terminal.sendInput(`${command.text}${command.sendEnter !== false ? '\r' : ''}`);
|
|
215
|
+
this.close();
|
|
216
|
+
terminal.emitFocused();
|
|
217
|
+
}
|
|
218
|
+
add(scope, parentPath, kind) {
|
|
219
|
+
const entry = kind === 'group'
|
|
220
|
+
? { kind, title: '', entries: [] }
|
|
221
|
+
: { kind, title: '', text: '', sendEnter: true };
|
|
222
|
+
this.setEditor({ scope, parentPath, entry, deleting: false });
|
|
223
|
+
}
|
|
224
|
+
edit(scope, parentPath, index, entry, deleting = false) {
|
|
225
|
+
this.setEditor({ scope, parentPath, index, entry: { ...entry }, deleting });
|
|
226
|
+
}
|
|
227
|
+
setEditor(editor) {
|
|
228
|
+
this.error = '';
|
|
229
|
+
this.editor = editor;
|
|
230
|
+
}
|
|
231
|
+
cancelEdit() {
|
|
232
|
+
this.editor = null;
|
|
233
|
+
this.error = '';
|
|
234
|
+
}
|
|
235
|
+
startCommandDrag(event, scope, parentPath, entries, index) {
|
|
236
|
+
if (!this.managing || this.editor || this.busy || !event.dataTransfer) {
|
|
237
|
+
event.preventDefault();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
this.error = '';
|
|
241
|
+
this.dragged = { scope, parentPath, entries, index };
|
|
242
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
243
|
+
event.dataTransfer.setData(commandDragType, 'command');
|
|
244
|
+
}
|
|
245
|
+
overGroup(event, entries) {
|
|
246
|
+
if (!this.dragged || this.dragged.entries === entries || !event.dataTransfer) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
event.preventDefault();
|
|
250
|
+
event.dataTransfer.dropEffect = 'move';
|
|
251
|
+
this.dropTarget = entries;
|
|
252
|
+
}
|
|
253
|
+
leaveGroup(event, entries) {
|
|
254
|
+
const target = event.currentTarget;
|
|
255
|
+
if (this.dropTarget === entries && !target.contains(event.relatedTarget)) {
|
|
256
|
+
this.dropTarget = null;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
endCommandDrag() {
|
|
260
|
+
this.dragged = null;
|
|
261
|
+
this.dropTarget = null;
|
|
262
|
+
}
|
|
263
|
+
async dropCommand(event, scope, path, entries) {
|
|
264
|
+
const drag = this.dragged;
|
|
265
|
+
if (!drag || drag.entries === entries || event.dataTransfer?.getData(commandDragType) !== 'command') {
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
event.preventDefault();
|
|
269
|
+
this.endCommandDrag();
|
|
270
|
+
if (!this.managing || !this.expanded || this.editor || this.busy) {
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
const source = this.copyScope(drag.scope);
|
|
274
|
+
const destination = drag.scope === scope ? source : this.copyScope(scope);
|
|
275
|
+
const from = this.entriesAt(source.entries, drag.parentPath);
|
|
276
|
+
const to = this.entriesAt(destination.entries, path);
|
|
277
|
+
const command = from?.[drag.index];
|
|
278
|
+
if (!from || !to || command?.kind !== 'command') {
|
|
279
|
+
this.error = 'The command or group is missing. Start the move again.';
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
from.splice(drag.index, 1);
|
|
283
|
+
to.push(command);
|
|
284
|
+
const changes = destination === source
|
|
285
|
+
? new Map([[scope, source]])
|
|
286
|
+
: new Map([[drag.scope, source], [scope, destination]]);
|
|
287
|
+
await this.persist(changes);
|
|
288
|
+
}
|
|
289
|
+
async save() {
|
|
290
|
+
const editor = this.editor;
|
|
291
|
+
if (!editor || this.busy) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const { scope, parentPath, index, entry, deleting } = editor;
|
|
295
|
+
if (!deleting && (!entry.title.trim() || (entry.kind === 'command' &&
|
|
296
|
+
(!entry.text.trim() || invalidCommandCharacters.test(entry.text))))) {
|
|
297
|
+
this.error = entry.kind === 'group' ? 'Enter a group name.' : 'Enter an alias and a single line of terminal text.';
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
const updated = this.copyScope(scope);
|
|
301
|
+
const entries = this.entriesAt(updated.entries, parentPath);
|
|
302
|
+
if (!entries) {
|
|
303
|
+
this.error = 'The original group is missing. Start the edit again.';
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
if (deleting && index !== undefined) {
|
|
307
|
+
entries.splice(index, 1);
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
const savedEntry = { ...structuredClone(entry), title: entry.title.trim() };
|
|
311
|
+
if (index === undefined) {
|
|
312
|
+
entries.push(savedEntry);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
entries[index] = savedEntry;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
await this.persist(new Map([[scope, updated]]));
|
|
319
|
+
}
|
|
320
|
+
copyScope(scope) {
|
|
321
|
+
return { profileId: scope.profileId, entries: structuredClone(scope.entries) };
|
|
322
|
+
}
|
|
323
|
+
entriesAt(entries, path) {
|
|
324
|
+
for (const index of path) {
|
|
325
|
+
const group = entries[index];
|
|
326
|
+
if (group?.kind !== 'group') {
|
|
327
|
+
return undefined;
|
|
328
|
+
}
|
|
329
|
+
entries = group.entries;
|
|
330
|
+
}
|
|
331
|
+
return entries;
|
|
332
|
+
}
|
|
333
|
+
async persist(changes) {
|
|
334
|
+
const settings = this.settings;
|
|
335
|
+
const previous = settings.scopes;
|
|
336
|
+
for (const scope of changes.keys()) {
|
|
337
|
+
if (previous.find(item => item.profileId === scope.profileId) !== scope.saved) {
|
|
338
|
+
this.refreshScopes();
|
|
339
|
+
this.editor = null;
|
|
340
|
+
this.error = 'Shortcuts changed elsewhere. Try again.';
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
const updated = [...changes.values()];
|
|
345
|
+
const next = [
|
|
346
|
+
...previous.filter(item => !updated.some(scope => scope.profileId === item.profileId)),
|
|
347
|
+
...updated.filter(scope => scope.entries.length),
|
|
348
|
+
];
|
|
349
|
+
this.busy = true;
|
|
350
|
+
this.error = '';
|
|
351
|
+
settings.scopes = next;
|
|
352
|
+
try {
|
|
353
|
+
await this.config.save();
|
|
354
|
+
this.editor = null;
|
|
355
|
+
this.refreshScopes();
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
if (this.settings === settings && (settings.scopes === next || (!next.length && !settings.scopes.length))) {
|
|
359
|
+
settings.scopes = previous;
|
|
360
|
+
}
|
|
361
|
+
this.error = 'Could not save the Tabby configuration. Try again.';
|
|
362
|
+
}
|
|
363
|
+
finally {
|
|
364
|
+
this.busy = false;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
refreshScopes() {
|
|
368
|
+
const profile = this.target?.profile;
|
|
369
|
+
const scopes = [{ profileId: null, title: 'Shared' }];
|
|
370
|
+
if (profile?.id) {
|
|
371
|
+
scopes.push({ profileId: profile.id, title: profile.name || profile.id });
|
|
372
|
+
}
|
|
373
|
+
this.scopes = scopes.map(scope => {
|
|
374
|
+
const saved = this.settings.scopes.find(item => item.profileId === scope.profileId);
|
|
375
|
+
return { ...scope, saved, entries: saved?.entries ?? [] };
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
__decorate([
|
|
380
|
+
(0, core_1.HostListener)('window:resize')
|
|
381
|
+
], QuickButtonsComponent.prototype, "updateViewport", null);
|
|
382
|
+
QuickButtonsComponent = __decorate([
|
|
383
|
+
(0, core_1.Component)({
|
|
384
|
+
selector: 'tabby-quick-buttons',
|
|
385
|
+
template: quickButtons_view_1.template,
|
|
386
|
+
styles: [quickButtons_view_1.styles],
|
|
387
|
+
}),
|
|
388
|
+
__param(0, (0, core_1.Inject)(tabby_core_1.AppService)),
|
|
389
|
+
__param(1, (0, core_1.Inject)(tabby_core_1.ConfigService)),
|
|
390
|
+
__param(2, (0, core_1.Inject)(tabby_core_1.NotificationsService))
|
|
391
|
+
], QuickButtonsComponent);
|
|
392
|
+
exports.QuickButtonsComponent = QuickButtonsComponent;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.styles = exports.template = void 0;
|
|
4
|
+
exports.template = `
|
|
5
|
+
<div class="dock" *ngIf="activeTerminal && layout as position"
|
|
6
|
+
[style.left.px]="position.x" [style.top.px]="position.y"
|
|
7
|
+
(pointerenter)="open()" (pointerleave)="leave()"
|
|
8
|
+
(keydown.escape)="$event.stopPropagation(); close()">
|
|
9
|
+
<button type="button" class="ball btn btn-primary" [class.moving]="movingBall"
|
|
10
|
+
[class.integrated]="expanded && !movingBall" aria-label="Quick Buttons"
|
|
11
|
+
title="Quick Buttons · Drag to move" [attr.aria-expanded]="expanded && !movingBall"
|
|
12
|
+
(pointerdown)="startBallDrag($event)"
|
|
13
|
+
(lostpointercapture)="finishBallDrag($event)" (click)="clickBall($event)">
|
|
14
|
+
<svg viewBox="0 0 24 24" width="25" height="25" fill="none" stroke="currentColor" stroke-width="2"
|
|
15
|
+
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m4 7 5 5-5 5m8 0h7"/></svg>
|
|
16
|
+
</button>
|
|
17
|
+
|
|
18
|
+
<div class="panel-position" *ngIf="expanded && !movingBall" [class.below]="position.below"
|
|
19
|
+
[class.anchor-right]="position.anchorRight"
|
|
20
|
+
[style.left.px]="position.panelOffset" [style.width.px]="position.panelWidth">
|
|
21
|
+
<section class="panel" aria-label="Quick commands panel" [style.max-height.px]="position.panelHeight">
|
|
22
|
+
<header class="panel-header">
|
|
23
|
+
<strong>Quick Buttons</strong>
|
|
24
|
+
<div *ngIf="!managing" class="actions">
|
|
25
|
+
<button type="button" class="btn btn-sm btn-outline-secondary"
|
|
26
|
+
(click)="managing = true">Manage</button>
|
|
27
|
+
<button type="button" class="btn btn-sm btn-outline-secondary" aria-label="Close Quick Buttons"
|
|
28
|
+
(click)="close()">×</button>
|
|
29
|
+
</div>
|
|
30
|
+
<button *ngIf="managing" type="button" class="btn btn-sm btn-outline-secondary"
|
|
31
|
+
[disabled]="busy" (click)="close()">Done</button>
|
|
32
|
+
</header>
|
|
33
|
+
<p *ngIf="managing && !editor" class="move-hint">Drag a command onto a group heading to move it.</p>
|
|
34
|
+
|
|
35
|
+
<form *ngIf="editor as draft" class="editor" (submit)="$event.preventDefault(); save()">
|
|
36
|
+
<ng-container *ngIf="!draft.deleting; else deletePrompt">
|
|
37
|
+
<label>
|
|
38
|
+
{{ draft.entry.kind === 'group' ? 'Group name' : 'Command alias' }}
|
|
39
|
+
<input class="form-control form-control-sm" required [disabled]="busy"
|
|
40
|
+
[value]="draft.entry.title" (input)="draft.entry.title = $any($event.target).value">
|
|
41
|
+
</label>
|
|
42
|
+
<label *ngIf="draft.entry.kind === 'command'">
|
|
43
|
+
Command text
|
|
44
|
+
<input class="form-control form-control-sm command-input" required autocomplete="off"
|
|
45
|
+
spellcheck="false" [disabled]="busy" [value]="draft.entry.text"
|
|
46
|
+
(input)="draft.entry.text = $any($event.target).value">
|
|
47
|
+
</label>
|
|
48
|
+
<label *ngIf="draft.entry.kind === 'command'" class="enter-option">
|
|
49
|
+
<input type="checkbox" [disabled]="busy" [checked]="draft.entry.sendEnter !== false"
|
|
50
|
+
(change)="draft.entry.sendEnter = $any($event.target).checked">
|
|
51
|
+
Press Enter after inserting
|
|
52
|
+
</label>
|
|
53
|
+
</ng-container>
|
|
54
|
+
<ng-template #deletePrompt>
|
|
55
|
+
<div>Delete “{{ draft.entry.title }}”?</div>
|
|
56
|
+
<div *ngIf="draft.entry.kind === 'group' && draft.entry.entries.length">
|
|
57
|
+
This also deletes its commands and subgroups.
|
|
58
|
+
</div>
|
|
59
|
+
</ng-template>
|
|
60
|
+
<div class="actions">
|
|
61
|
+
<button type="button" class="btn btn-sm btn-outline-secondary" [disabled]="busy"
|
|
62
|
+
(click)="cancelEdit()">Cancel</button>
|
|
63
|
+
<button type="submit" class="btn btn-sm" [disabled]="busy"
|
|
64
|
+
[class.btn-danger]="draft.deleting" [class.btn-primary]="!draft.deleting">
|
|
65
|
+
{{ draft.deleting ? 'Confirm deletion' : 'Save' }}
|
|
66
|
+
</button>
|
|
67
|
+
</div>
|
|
68
|
+
</form>
|
|
69
|
+
<p class="error text-danger" *ngIf="error" role="alert">{{ error }}</p>
|
|
70
|
+
|
|
71
|
+
<div class="scope-list">
|
|
72
|
+
<section class="scope" *ngFor="let scope of scopes">
|
|
73
|
+
<div class="row-heading"
|
|
74
|
+
[class.drop-ready]="dragged && dragged.entries !== scope.entries"
|
|
75
|
+
[class.drop-active]="dropTarget === scope.entries"
|
|
76
|
+
(dragover)="overGroup($event, scope.entries)"
|
|
77
|
+
(dragleave)="leaveGroup($event, scope.entries)"
|
|
78
|
+
(drop)="dropCommand($event, scope, [], scope.entries)">
|
|
79
|
+
<strong class="scope-title">{{ scope.title }}</strong>
|
|
80
|
+
<span class="scope-tag" *ngIf="scope.profileId !== null">Current profile</span>
|
|
81
|
+
</div>
|
|
82
|
+
<ng-container *ngTemplateOutlet="entryList; context: {
|
|
83
|
+
$implicit: scope.entries, scope: scope, path: []
|
|
84
|
+
}"></ng-container>
|
|
85
|
+
</section>
|
|
86
|
+
<p *ngIf="managing && scopes.length === 1" class="empty profile-hint">
|
|
87
|
+
Open a saved Tabby profile to create profile-specific groups.
|
|
88
|
+
</p>
|
|
89
|
+
</div>
|
|
90
|
+
</section>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<ng-template #entryList let-entries let-scope="scope" let-path="path">
|
|
95
|
+
<div *ngIf="managing" class="actions group-actions">
|
|
96
|
+
<button type="button" class="btn btn-sm btn-outline-secondary"
|
|
97
|
+
[disabled]="editor || busy" (click)="add(scope, path, 'command')">Add command</button>
|
|
98
|
+
<button type="button" class="btn btn-sm btn-outline-secondary"
|
|
99
|
+
[disabled]="editor || busy" (click)="add(scope, path, 'group')">Add group</button>
|
|
100
|
+
</div>
|
|
101
|
+
<p *ngIf="!entries.length && !managing" class="empty">No commands yet</p>
|
|
102
|
+
<div class="entries" [class.managing]="managing">
|
|
103
|
+
<div *ngFor="let entry of entries; let index = index" class="entry" [class.is-group]="entry.kind === 'group'">
|
|
104
|
+
<ng-container *ngIf="entry.kind === 'group'; else command">
|
|
105
|
+
<details open>
|
|
106
|
+
<summary [class.drop-ready]="dragged && dragged.entries !== entry.entries"
|
|
107
|
+
[class.drop-active]="dropTarget === entry.entries"
|
|
108
|
+
(dragover)="overGroup($event, entry.entries)"
|
|
109
|
+
(dragleave)="leaveGroup($event, entry.entries)"
|
|
110
|
+
(drop)="dropCommand($event, scope, path.concat(index), entry.entries)">{{ entry.title }}</summary>
|
|
111
|
+
<div class="nested">
|
|
112
|
+
<div class="actions group-actions" *ngIf="managing">
|
|
113
|
+
<ng-container *ngTemplateOutlet="editActions"></ng-container>
|
|
114
|
+
</div>
|
|
115
|
+
<ng-container *ngTemplateOutlet="entryList; context: {
|
|
116
|
+
$implicit: entry.entries, scope: scope, path: path.concat(index)
|
|
117
|
+
}"></ng-container>
|
|
118
|
+
</div>
|
|
119
|
+
</details>
|
|
120
|
+
</ng-container>
|
|
121
|
+
<ng-template #command>
|
|
122
|
+
<div class="command-row">
|
|
123
|
+
<span class="command-drag" *ngIf="managing" [attr.draggable]="!editor && !busy"
|
|
124
|
+
(dragstart)="startCommandDrag($event, scope, path, entries, index)"
|
|
125
|
+
(dragend)="endCommandDrag()" title="Drag to another group">
|
|
126
|
+
<span aria-hidden="true" class="grip">⠿</span>
|
|
127
|
+
<span class="command-alias">{{ entry.title }}</span>
|
|
128
|
+
</span>
|
|
129
|
+
<button *ngIf="!managing" type="button" class="command-run"
|
|
130
|
+
[disabled]="!target?.session?.open" (click)="execute(entry, scope)">
|
|
131
|
+
<span class="command-alias">{{ entry.title }}</span>
|
|
132
|
+
</button>
|
|
133
|
+
<div class="actions" *ngIf="managing">
|
|
134
|
+
<ng-container *ngTemplateOutlet="editActions"></ng-container>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</ng-template>
|
|
138
|
+
<ng-template #editActions>
|
|
139
|
+
<button type="button" class="btn btn-sm btn-outline-secondary"
|
|
140
|
+
[disabled]="editor || busy" [attr.aria-label]="'Edit ' + entry.title"
|
|
141
|
+
(click)="edit(scope, path, index, entry)">Edit</button>
|
|
142
|
+
<button type="button" class="btn btn-sm btn-outline-danger"
|
|
143
|
+
[disabled]="editor || busy" [attr.aria-label]="'Delete ' + entry.title"
|
|
144
|
+
(click)="edit(scope, path, index, entry, true)">Delete</button>
|
|
145
|
+
</ng-template>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</ng-template>
|
|
149
|
+
`;
|
|
150
|
+
exports.styles = `
|
|
151
|
+
.dock {
|
|
152
|
+
position: fixed;
|
|
153
|
+
z-index: 1020;
|
|
154
|
+
}
|
|
155
|
+
.ball {
|
|
156
|
+
display: grid;
|
|
157
|
+
place-items: center;
|
|
158
|
+
place-content: center;
|
|
159
|
+
border-radius: 50%;
|
|
160
|
+
padding: 0;
|
|
161
|
+
width: 52px;
|
|
162
|
+
height: 52px;
|
|
163
|
+
box-shadow: 0 0 0 2px var(--bs-body-bg, #252525), 0 4px 14px #0006;
|
|
164
|
+
cursor: grab;
|
|
165
|
+
touch-action: none;
|
|
166
|
+
user-select: none;
|
|
167
|
+
}
|
|
168
|
+
.ball.moving { cursor: grabbing; }
|
|
169
|
+
.ball svg { pointer-events: none; }
|
|
170
|
+
.ball.integrated {
|
|
171
|
+
position: relative;
|
|
172
|
+
z-index: 1;
|
|
173
|
+
border-color: transparent;
|
|
174
|
+
border-radius: 8px;
|
|
175
|
+
color: var(--bs-body-color);
|
|
176
|
+
background: transparent;
|
|
177
|
+
box-shadow: none;
|
|
178
|
+
}
|
|
179
|
+
.ball.integrated:hover { background: #80808026; }
|
|
180
|
+
.ball.integrated:focus-visible { outline: 2px solid var(--bs-primary, #9689eb); outline-offset: -3px; }
|
|
181
|
+
.panel-position {
|
|
182
|
+
position: absolute;
|
|
183
|
+
bottom: 0;
|
|
184
|
+
}
|
|
185
|
+
.panel-position.below { top: 0; bottom: auto; }
|
|
186
|
+
.panel {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
border: 1px solid var(--bs-border-color, #555);
|
|
190
|
+
border-radius: 8px;
|
|
191
|
+
color: var(--bs-body-color);
|
|
192
|
+
background: var(--bs-body-bg, #252525);
|
|
193
|
+
box-shadow: 0 6px 24px #0004;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
}
|
|
196
|
+
.panel-header, .row-heading, .command-row, .actions {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 8px;
|
|
200
|
+
}
|
|
201
|
+
.panel-header {
|
|
202
|
+
order: 1;
|
|
203
|
+
flex: none;
|
|
204
|
+
justify-content: space-between;
|
|
205
|
+
min-height: 52px;
|
|
206
|
+
padding: 6px 12px 6px 58px;
|
|
207
|
+
border-top: 1px solid var(--bs-border-color, #555);
|
|
208
|
+
}
|
|
209
|
+
.panel-position.below .panel-header {
|
|
210
|
+
order: 0;
|
|
211
|
+
border-top: none;
|
|
212
|
+
border-bottom: 1px solid var(--bs-border-color, #555);
|
|
213
|
+
}
|
|
214
|
+
.panel-position.anchor-right .panel-header { padding: 6px 58px 6px 12px; }
|
|
215
|
+
.editor { border-bottom: 1px solid var(--bs-border-color, #555); }
|
|
216
|
+
.move-hint { margin: 7px 12px 0; font-size: .85em; opacity: .8; }
|
|
217
|
+
.scope-list { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 12px 10px; }
|
|
218
|
+
.scope { padding: 8px 0; }
|
|
219
|
+
.scope + .scope { border-top: 1px solid var(--bs-border-color, #555); }
|
|
220
|
+
.row-heading { margin-bottom: 5px; }
|
|
221
|
+
.scope-title, summary, .command-alias { overflow-wrap: anywhere; }
|
|
222
|
+
.scope-tag { flex: none; opacity: .72; font-size: .8em; }
|
|
223
|
+
.empty { margin: 3px 0; opacity: .75; font-size: .9em; }
|
|
224
|
+
.profile-hint { padding-bottom: 4px; }
|
|
225
|
+
.entries { display: flex; flex-wrap: wrap; gap: 5px; }
|
|
226
|
+
.entry { min-width: 0; max-width: 100%; }
|
|
227
|
+
.entry.is-group, .entries.managing > .entry { flex: 0 0 100%; }
|
|
228
|
+
summary { cursor: pointer; padding: 4px; }
|
|
229
|
+
.row-heading { padding: 3px 4px; }
|
|
230
|
+
.drop-ready { outline: 1px dashed var(--bs-primary, #9689eb); border-radius: 4px; }
|
|
231
|
+
.drop-active { background: var(--bs-primary-bg-subtle, #80808040); outline-style: solid; }
|
|
232
|
+
.nested {
|
|
233
|
+
border-left: 1px solid var(--bs-border-color, #555);
|
|
234
|
+
margin-left: 5px;
|
|
235
|
+
padding-left: 9px;
|
|
236
|
+
}
|
|
237
|
+
.command-row { justify-content: space-between; min-height: 30px; }
|
|
238
|
+
.command-drag { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
239
|
+
.command-drag[draggable="true"] { cursor: grab; user-select: none; }
|
|
240
|
+
.grip { opacity: .68; }
|
|
241
|
+
.command-run {
|
|
242
|
+
display: block;
|
|
243
|
+
max-width: 100%;
|
|
244
|
+
padding: 3px 8px;
|
|
245
|
+
text-align: left;
|
|
246
|
+
color: inherit;
|
|
247
|
+
background: #80808017;
|
|
248
|
+
border: 1px solid #80808052;
|
|
249
|
+
border-radius: 4px;
|
|
250
|
+
}
|
|
251
|
+
.command-run:hover:not(:disabled) { background: #80808030; }
|
|
252
|
+
.command-run:disabled { opacity: .5; }
|
|
253
|
+
.actions { flex-wrap: wrap; }
|
|
254
|
+
.command-row > .actions { flex: none; }
|
|
255
|
+
.group-actions { margin: 4px 0; }
|
|
256
|
+
.editor { display: grid; gap: 7px; padding: 8px 12px; }
|
|
257
|
+
.editor label { display: grid; gap: 3px; margin: 0; }
|
|
258
|
+
.editor .enter-option { display: flex; align-items: center; gap: 6px; }
|
|
259
|
+
.editor .actions { justify-content: flex-end; }
|
|
260
|
+
.command-input { font-family: ui-monospace, monospace; }
|
|
261
|
+
.error { margin: 6px 12px; }
|
|
262
|
+
@media (max-height: 420px) {
|
|
263
|
+
.editor { overflow: auto; max-height: 52vh; }
|
|
264
|
+
}
|
|
265
|
+
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabby-quick-buttons",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Floating command shortcuts with shared and per-profile groups for Tabby.",
|
|
5
|
+
"author": "zp",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/vzpd/tabby-quick-buttons.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/vzpd/tabby-quick-buttons#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/vzpd/tabby-quick-buttons/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"tabby-plugin"
|
|
17
|
+
],
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc",
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"prepack": "npm run build"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@angular/common": "15.2.10",
|
|
29
|
+
"@angular/core": "15.2.10",
|
|
30
|
+
"@types/node": "^18.0.0",
|
|
31
|
+
"rxjs": "^7.8.0",
|
|
32
|
+
"tabby-core": "1.0.231-nightly.0",
|
|
33
|
+
"tabby-terminal": "1.0.231-nightly.0",
|
|
34
|
+
"typescript": "4.9.5",
|
|
35
|
+
"zone.js": "~0.13.0"
|
|
36
|
+
}
|
|
37
|
+
}
|