From e446c478e56458f7501817880e2ce0b1b3f59dc1 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sun, 27 Dec 2020 16:14:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E2=80=9C=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E5=BF=AB=E6=8D=B7=E5=91=BD=E4=BB=A4=E2=80=9D=EF=BC=8C?= =?UTF-8?q?=E5=BC=83=E7=94=A8=E2=80=9C=E8=BF=90=E8=A1=8C=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin.json | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/plugin.json b/src/plugin.json index c467e0b..75e35d3 100644 --- a/src/plugin.json +++ b/src/plugin.json @@ -4,7 +4,7 @@ "main": "index.html", "homepage": "https://github.com/fofolee/uTools-QuickerCommand", "publishPage": "https://yuanliao.info/d/424", - "version": "2.1.1", + "version": "2.2.0", "author": "云之轩", "unpack":"autopep8.py", "logo": "logo.png", @@ -21,11 +21,15 @@ { "code": "code", "explain": "编辑及运行代码", - "cmds": [ "运行代码", "RunCode", { - "type": "files", - "label": "运行代码", - "fileType": "file", - "match": "/\\.(sh|scpt|bat|ps1|py|js|rb|php|c|cs|lua|pl)$/i", + "cmds": [ "运行代码", "RunCode"] + }, + { + "code": "newcommand", + "explain": "快速新建快捷命令", + "cmds": [ "新建快捷命令", "NewCommand", { + "type": "regex", + "label": "新建快捷命令", + "match": "/^\\{[\\s\\S]*\"program\" *: *\".*\"[\\s\\S]*\"cmd\" *: *\".*\"[\\s\\S]*\\}$/i", "maxNum": 1 }] }