tabby-quick-scripts-chenlei 1.0.0 → 2.3.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/package.json +2 -2
- package/readme.md +108 -79
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabby-quick-scripts-chenlei",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"description": "Display shortcut script buttons above the terminal. Clicking a button executes the preset commands sequentially.在终端上方显示快捷脚本按钮,点击即可按顺序执行预设命令",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tabby-plugin"
|
|
7
7
|
],
|
package/readme.md
CHANGED
|
@@ -1,79 +1,108 @@
|
|
|
1
|
-
# Tabby Quick Scripts
|
|
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
|
-
|
|
1
|
+
# 🚀 Tabby Quick Scripts Plugin
|
|
2
|
+
|
|
3
|
+
[](https://github.com/Eugeny/tabby)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
`tabby-quick-scripts` is an enhancement plugin tailored for the **[Tabby Terminal](https://github.com/Eugeny/tabby)**. It injects a shortcut toolbar above the terminal tabs, helping users efficiently manage and execute preset multi-line commands with a single click, while integrating powerful SFTP auxiliary features.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## ✨ Core Features
|
|
11
|
+
|
|
12
|
+
* **⚡ Quick Script Toolbar**: Displays a persistent shortcut button bar at the top of SSH, Serial, Telnet, and other terminal panels.
|
|
13
|
+
* **🤖 Intelligent Sequential Execution**: Supports sending multi-line commands in order. Built-in prompt detection (`$`, `#`, `>`, `%`) ensures the next command is sent only after the previous one has responded, avoiding command stacking.
|
|
14
|
+
* **📂 Enhanced SFTP Module**:
|
|
15
|
+
* **Auto Directory Sync**: Automatically navigates the SFTP remote panel to the current terminal's working directory upon opening.
|
|
16
|
+
* **Dual-Side Favorites**: Bookmark frequently used paths for both local and remote sides for rapid navigation.
|
|
17
|
+
* **Smart Time Highlighting**: File modification times (Year-Month-Day-Hour-Minute) matching the current system time are automatically highlighted in **Green/Yellow**, allowing you to instantly locate the latest logs or files.
|
|
18
|
+
* **Native Drag-and-Drop**: Supports drag-and-drop file/folder transfers between left and right panels, or directly from system folders to the remote server.
|
|
19
|
+
* **🎨 Visual Management**:
|
|
20
|
+
* **Create**: Add new scripts quickly by clicking the `+` icon on the right side of the toolbar.
|
|
21
|
+
* **Execute**: Left-click a script button to trigger execution immediately.
|
|
22
|
+
* **Manage**: Right-click a button to enter edit mode, customize colors, or reorder scripts.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 📦 Installation
|
|
27
|
+
|
|
28
|
+
### Method 1: Install from Official Plugin Store (Recommended)
|
|
29
|
+
|
|
30
|
+
1. Open Tabby **Settings** -> **Plugins**.
|
|
31
|
+
2. Search for `tabby-quick-scripts-chenlei`.
|
|
32
|
+
3. Click the **Install** button and restart Tabby after completion.
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 📖 Usage Guide
|
|
39
|
+
|
|
40
|
+
### 1. Script Management
|
|
41
|
+
* **Left Click**: Immediately trigger script execution.
|
|
42
|
+
* **Right Click**: Open the edit modal to modify commands or delete the script.
|
|
43
|
+
|
|
44
|
+

|
|
45
|
+

|
|
46
|
+
|
|
47
|
+
### 2. Enhanced SFTP Module
|
|
48
|
+
Click the **`SFTP`** button in the top right corner of the terminal to open the enhanced panel.
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
* **Path Favorites**: Click the star icon to bookmark the current path, and quickly switch via the dropdown menu on the right.
|
|
53
|
+
* **Time Matching**: As shown below, the parts of the date/time matching the current time will be displayed in a prominent color.
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 🛠️ Local Development & Manual Installation
|
|
60
|
+
|
|
61
|
+
If you need to install manually or perform secondary development:
|
|
62
|
+
|
|
63
|
+
### 1. Plugin Storage Path
|
|
64
|
+
* **Windows**: `%APPDATA%\tabby\plugins\node_modules\`
|
|
65
|
+
* **macOS**: `~/Library/Application Support/tabby/plugins/node_modules/`
|
|
66
|
+
* **Linux**: `~/.config/tabby/plugins/node_modules/`
|
|
67
|
+
|
|
68
|
+
### 2. Symbolic Link Deployment (Recommended)
|
|
69
|
+
Create a symbolic link in the `node_modules` directory pointing to this project's source code to avoid repetitive copying.
|
|
70
|
+
|
|
71
|
+
**PowerShell (Run as Administrator):**
|
|
72
|
+
```powershell
|
|
73
|
+
# Ensure the path after -Target is the actual path to your local source code
|
|
74
|
+
New-Item -ItemType SymbolicLink -Path "$env:APPDATA\tabby\plugins\node_modules\tabby-quick-scripts" -Target "F:\git\gitea20250909\tabby--QuickScripts"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 3. Build Commands
|
|
78
|
+
```bash
|
|
79
|
+
# Install dependencies
|
|
80
|
+
npm install
|
|
81
|
+
|
|
82
|
+
# Build for production
|
|
83
|
+
npm run build
|
|
84
|
+
|
|
85
|
+
# Watch mode for development (auto-rebuild on changes)
|
|
86
|
+
npm run watch
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
> [!IMPORTANT]
|
|
90
|
+
> **Note**: Regardless of the installation method, you must **fully exit and restart Tabby** for the plugin to take effect.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## ⚙️ Advanced Configuration (config.yaml)
|
|
95
|
+
|
|
96
|
+
You can fine-tune the script execution logic by modifying Tabby's global configuration file `config.yaml`:
|
|
97
|
+
|
|
98
|
+
```yaml
|
|
99
|
+
quickScriptsPlugin:
|
|
100
|
+
promptPattern: '(\$|#|>|%)\s*$' # Regex to determine the end of the previous command
|
|
101
|
+
commandTimeout: 30000 # Maximum wait time for a single command (ms)
|
|
102
|
+
minDelay: 500 # Minimum physical safety delay between commands (ms)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 📄 License
|
|
108
|
+
Licensed under the [MIT](LICENSE) License.
|