move selection logic to mouse click

This commit is contained in:
takase1121
2021-12-19 09:36:24 +08:00
parent becdb99222
commit 1526cd176c
3 changed files with 22 additions and 21 deletions
-12
View File
@@ -1,18 +1,6 @@
local core = require "core"
local command = require "core.command"
command.add("core.logview", {
["log:expand-item"] = function()
if core.active_view.hovered_item then
core.active_view:expand_item(core.active_view.hovered_item)
end
end,
["log:copy-entry"] = function()
if core.active_view.hovered_item then
system.set_clipboard(core.get_log(core.active_view.hovered_item))
end
end
})
command.add(nil, {
["log:open-as-doc"] = function()