diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index 0cba8e7d..40b89b39 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -1,5 +1,5 @@ (function() { const CURRENT_FILE = "web.code.inner:currentFile", SELECT_LINE = "web.code.inner.selectLine" -const VIEW_CREATE = "tabview.view.create", VIEW_REMOTE = "tabview.view.remove", LINE_SELECT = "tabview.line.select" +const VIEW_CREATE = "tabview.view.create", VIEW_REMOVE = "tabview.view.remove", LINE_SELECT = "tabview.line.select" Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.onmotion.clear(can), can.onappend.style(can, code.INNER) if (msg.Option(nfs.FILE)) { can.Option(nfs.FILE, msg.Option(nfs.FILE)) msg.Option(nfs.PATH) && can.Option(nfs.PATH, msg.Option(nfs.PATH)) diff --git a/plugin/local/code/vimer.js b/plugin/local/code/vimer.js index 1ee8f080..bf0fd0c4 100644 --- a/plugin/local/code/vimer.js +++ b/plugin/local/code/vimer.js @@ -18,14 +18,6 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.require(["i _value: function(can) { can.db.mode == mdb.INSERT && can.onmotion.delay(can, function() { can.current.text(can.ui.current.value) }) }, }, [""]) Volcanos(chat.ONFIGURE, { - recent: function(can, target, zone) { var total = 0 - function show(msg, cb) { var list = {}; msg.Table(function(item) { var path = item.path+item.file; if (!list[path]) { list[path] = item, can.page.Append(can, target, cb(item, path)), total++ } }) } - can.runAction({}, code.FAVOR, ["_recent_file"], function(msg) { - show(msg, function(item, path) { return [{text: [path.split(ice.PS).slice(-2).join(ice.PS), html.DIV, html.ITEM], title: path, onclick: function(event) { - can.onimport.tabview(can, item.path, item.file) - }}] }), zone._total(total) - }) - }, source: function(can, target, zone, path) { var args = can.base.getValid(can.misc.SearchHash(can), [can.Option(nfs.PATH), can.Option(nfs.FILE)]) function show(target, zone, path) { can.run(can.request({}, {dir_root: path, dir_deep: true}), [nfs.PWD], function(msg) { can.onmotion.clear(can, target) if (path == nfs.SRC) { can.ui.zone.source.refresh = function() { show(target, zone, path) } }