mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 06:16:27 +08:00
新增文件匹配
This commit is contained in:
parent
730def47f3
commit
164d48146c
@ -32,6 +32,8 @@ utools.onPluginEnter(async ({ code, type, payload }) => {
|
||||
cmd = special(cmd);
|
||||
// 正则
|
||||
if (type == 'regex') cmd = cmd.replace(/\{\{input\}\}/mg, payload);
|
||||
// 文件
|
||||
if (type == 'files') cmd = cmd.replace(/\{\{MatchedFiles\}\}/mg, JSON.stringify(payload));
|
||||
// 窗口
|
||||
if (type == 'window') {
|
||||
// 获取选中的文件
|
||||
|
Loading…
x
Reference in New Issue
Block a user