mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 02:47:30 +08:00
支持匹配脚本文件,直接运行
This commit is contained in:
@@ -14,8 +14,10 @@ utools.onPluginEnter(async ({ code, type, payload }) => {
|
||||
// $("#options").show();
|
||||
showOptions();
|
||||
} else if (code == 'code') {
|
||||
var file = ""
|
||||
utools.setExpendHeight(600);
|
||||
showCodeEditor()
|
||||
if (type == 'files') file = payload[0].path
|
||||
showCodeEditor(file)
|
||||
} else {
|
||||
// console.log(new Date().getTime() - window.startTime);
|
||||
utools.setExpendHeight(0);
|
||||
|
||||
Reference in New Issue
Block a user