完善执行命令功能 80%

This commit is contained in:
fofolee
2022-04-09 16:27:55 +08:00
parent b36248c9bc
commit 94b19dce5d
4 changed files with 102 additions and 56 deletions

View File

@@ -6,43 +6,63 @@ const outputTypes = {
ignore: {
name: "ignore",
label: "忽略输出并隐藏",
icon: "more_horiz"
icon: "more_horiz",
hideWindow: true,
outPlugin: true,
action: result => null
},
nothing: {
name: "nothing",
label: "忽略输出且不隐藏",
icon: "blur_linear"
icon: "blur_linear",
outPlugin: true,
action: result => null
},
text: {
name: "text",
label: "纯文本输出",
icon: "text_snippet"
icon: "text_snippet",
action: result => window.htmlEncode(result)
},
html: {
name: "html",
label: "html格式输出",
icon: "html"
icon: "html",
action: result => result
},
terminal: {
name: "terminal",
label: "在终端显示",
icon: "terminal"
icon: "terminal",
hideWindow: true,
outPlugin: true,
action: result => null
},
clip: {
name: "clip",
label: "复制到剪贴板",
icon: "content_paste"
icon: "content_paste",
hideWindow: true,
outPlugin: true,
action: result => window.copyTo(result)
},
send: {
name: "send",
label: "发送到活动窗口",
icon: "web_asset"
icon: "web_asset",
hideWindow: true,
outPlugin: true,
action: result => window.send(result)
},
notice: {
name: "notice",
label: "发送系统通知",
icon: "sms"
icon: "sms",
hideWindow: true,
outPlugin: true,
action: result => window.message(result)
},
};
export default outputTypes
export default outputTypes