mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 15:04:06 +08:00
feat: 新增“新建快捷命令”,弃用“运行脚本”
This commit is contained in:
parent
b887f61b9b
commit
e446c478e5
@ -4,7 +4,7 @@
|
|||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"homepage": "https://github.com/fofolee/uTools-QuickerCommand",
|
"homepage": "https://github.com/fofolee/uTools-QuickerCommand",
|
||||||
"publishPage": "https://yuanliao.info/d/424",
|
"publishPage": "https://yuanliao.info/d/424",
|
||||||
"version": "2.1.1",
|
"version": "2.2.0",
|
||||||
"author": "云之轩",
|
"author": "云之轩",
|
||||||
"unpack":"autopep8.py",
|
"unpack":"autopep8.py",
|
||||||
"logo": "logo.png",
|
"logo": "logo.png",
|
||||||
@ -21,11 +21,15 @@
|
|||||||
{
|
{
|
||||||
"code": "code",
|
"code": "code",
|
||||||
"explain": "编辑及运行代码",
|
"explain": "编辑及运行代码",
|
||||||
"cmds": [ "运行代码", "RunCode", {
|
"cmds": [ "运行代码", "RunCode"]
|
||||||
"type": "files",
|
},
|
||||||
"label": "运行代码",
|
{
|
||||||
"fileType": "file",
|
"code": "newcommand",
|
||||||
"match": "/\\.(sh|scpt|bat|ps1|py|js|rb|php|c|cs|lua|pl)$/i",
|
"explain": "快速新建快捷命令",
|
||||||
|
"cmds": [ "新建快捷命令", "NewCommand", {
|
||||||
|
"type": "regex",
|
||||||
|
"label": "新建快捷命令",
|
||||||
|
"match": "/^\\{[\\s\\S]*\"program\" *: *\".*\"[\\s\\S]*\"cmd\" *: *\".*\"[\\s\\S]*\\}$/i",
|
||||||
"maxNum": 1
|
"maxNum": 1
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user