From 164d48146c75cddb61ad21ae0eb1402423a3a729 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 20 Jun 2020 19:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/assets/index.js b/src/assets/index.js index 20d8986..9e18ed7 100644 --- a/src/assets/index.js +++ b/src/assets/index.js @@ -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') { // 获取选中的文件