mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
文档更新
This commit is contained in:
parent
dd94066932
commit
299978ed04
@ -33,7 +33,7 @@
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
### 3.自定义命令
|
||||
|
||||
@ -100,6 +100,7 @@
|
||||
- `{{ClipText}}` 获取剪贴板的文本
|
||||
- `{{SelectText}}` 获取选中的文本 (已弃用)
|
||||
- `{{subinput}}`获取子输入框的文本,具有此变量时会在进入插件时自动启动子输入框
|
||||
- 可以通过`{{subinput:placeholder}}`的格式来自定义占位符
|
||||
|
||||
匹配**窗口/进程**时可用
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
### 3.自定义命令
|
||||
|
||||
@ -100,6 +100,7 @@
|
||||
- `{{ClipText}}` 获取剪贴板的文本
|
||||
- `{{SelectText}}` 获取选中的文本 (已弃用)
|
||||
- `{{subinput}}`获取子输入框的文本,具有此变量时会在进入插件时自动启动子输入框
|
||||
- 可以通过`{{subinput:placeholder}}`的格式来自定义占位符
|
||||
|
||||
匹配**窗口/进程**时可用
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@
|
||||
|
||||
可以在线下载分享的命令
|
||||
|
||||

|
||||

|
||||
|
||||
#### 暗黑模式
|
||||
|
||||
@ -77,6 +77,7 @@
|
||||
|
||||
- 新增` {{MatchedFiles}} `用来获取匹配的文件
|
||||
- `{{MatchedFiles}}` 及` {{WindowInfo}} `支持获取特殊的键值,比如通过 `{{WindowInfo.id}}`获取匹配的窗口 id ,通过`{{MatchedFiles[0].path}}`获取匹配的第一个文件的路径
|
||||
- 可以通过`{{subinput:placeholder}}`的格式来自定义占位符
|
||||
- `{{pwd}} `获取失败时返回桌面路径
|
||||
|
||||
#### 输出
|
||||
|
File diff suppressed because one or more lines are too long
@ -85,6 +85,7 @@
|
||||
- `{{ClipText}}` 获取剪贴板的文本
|
||||
- `{{SelectText}}` 获取选中的文本 (已弃用)
|
||||
- `{{subinput}}`获取子输入框的文本,具有此变量时会在进入插件时自动启动子输入框
|
||||
- 可以通过`{{subinput:placeholder}}`的格式来自定义占位符
|
||||
|
||||
##### 匹配窗口/进程时可用
|
||||
|
||||
@ -168,7 +169,7 @@
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
2. 访问[ https://www.yuque.com/fofolee/qcreleases ]( https://www.yuque.com/fofolee/qcreleases )即可查看发布的命令
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -2,12 +2,10 @@
|
||||
|
||||
## quickcommand
|
||||
|
||||
#### `showButtonBox(buttons)`
|
||||
#### `showButtonBox(buttons, title)`
|
||||
|
||||
- callback: Function 回调函数
|
||||
- index: Integer 按钮的序号,从0开始
|
||||
- text: String 按钮的文本
|
||||
- buttons: Array 每一个元素对应一个按钮
|
||||
- title: String | undefined 对话框标题
|
||||
- 返回: Promise
|
||||
- id: Integer 按钮的序号,从0开始
|
||||
- text: String 按钮的文本
|
||||
@ -56,9 +54,10 @@ quickcommand.showButtonBox(['打开文件', '在文件管理器中定位', '复
|
||||
})
|
||||
```
|
||||
|
||||
####`showInputBox(placeHolders)`
|
||||
####`showInputBox(placeHolders, title)`
|
||||
|
||||
- placeHolders: Array 每一个占位符对应一个输入框
|
||||
- title: String | undefined 对话框标题
|
||||
- 返回: Promise
|
||||
- values: Array 所以输入框的值
|
||||
|
||||
@ -395,9 +394,9 @@ quickcommand.kill(16084)
|
||||
- **kill**: *ƒ (pid, signal = 'SIGTERM')*
|
||||
- **payload**: ""
|
||||
- **setTimeout**: *ƒ (callback, ms)*
|
||||
- **showButtonBox**: *ƒ (buttons)*
|
||||
- **showButtonBox**: *ƒ (buttons, title='')*
|
||||
- **showConfirmBox**: *ƒ (title)*
|
||||
- **showInputBox**: *ƒ (placeHolders)*
|
||||
- **showInputBox**: *ƒ (placeHolders, title='')*
|
||||
- **showMessageBox**: *ƒ (title, icon = "success", time = 3000)*
|
||||
- **showSelectList**: *ƒ (selects, opt = {})*
|
||||
- **showTextAera**: *ƒ (placeholder = "")*
|
||||
|
Loading…
x
Reference in New Issue
Block a user