1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
shaoying 2022-10-08 10:26:40 +08:00
parent 3ec543539f
commit f104e1a3c4

View File

@ -27,7 +27,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
}, [""])
Volcanos(chat.ONFIGURE, {help: "索引导航",
create: function(can, target, zone, path) {
can.isCmdMode()? can.onappend._action(can, can.base.Obj(can._msg.Option(ice.MSG_ACTION)).concat(window.webview? ["日志", "编辑器", "浏览器"]: []), target): can.onmotion.hidden(can, target.parentNode)
can.isCmdMode()? can.onappend._action(can, can.base.Obj(can._msg.Option(ice.MSG_ACTION)).concat(window.webview? ["日志", "录屏", "编辑器", "浏览器"]: []), target): can.onmotion.hidden(can, target.parentNode)
},
recent: function(can, target, zone, path) { var total = 0
can.runAction(can.request({}), code.FAVOR, ["_vimer"], function(msg) {
@ -324,6 +324,9 @@ Volcanos(chat.ONACTION, {help: "控件交互",
"日志": function(event, can) {
window.opencmd("cd ~/contexts; tail -f var/log/bench.log")
},
"录屏": function(event, can) {
window.openapp("QuickTime Player")
},
"编辑器": function(event, can) {
window.opencmd("cd ~/contexts; vim +"+can.Option(nfs.LINE)+" "+can.Option(nfs.PATH)+can.Option(nfs.FILE))
},