Add command root:close-all

This commit is contained in:
Francesco Abbate
2021-01-13 16:51:42 +01:00
parent ef5e431a8b
commit 08b010a2da
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -11,6 +11,12 @@ local t = {
node:close_active_view(core.root_view.root_node)
end,
["root:close-all"] = function()
if core.confirm_close_all() then
core.root_view:close_all_docviews()
end
end,
["root:switch-to-previous-tab"] = function()
local node = core.root_view:get_active_node()
local idx = node:get_view_idx(core.active_view)