Add command root:close-all
This commit is contained in:
parent
ef5e431a8b
commit
08b010a2da
|
@ -7,6 +7,8 @@ This files document the differences between Lite XL and rxi/lite for each versio
|
||||||
Add config mechanism to disable loading of specific plugins by setting
|
Add config mechanism to disable loading of specific plugins by setting
|
||||||
`config.<plugin-name> = false`.
|
`config.<plugin-name> = false`.
|
||||||
|
|
||||||
|
Add command `root:close-all` to close all the documents currently opened.
|
||||||
|
|
||||||
### 1.15
|
### 1.15
|
||||||
|
|
||||||
**Project directories**
|
**Project directories**
|
||||||
|
|
|
@ -11,6 +11,12 @@ local t = {
|
||||||
node:close_active_view(core.root_view.root_node)
|
node:close_active_view(core.root_view.root_node)
|
||||||
end,
|
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()
|
["root:switch-to-previous-tab"] = function()
|
||||||
local node = core.root_view:get_active_node()
|
local node = core.root_view:get_active_node()
|
||||||
local idx = node:get_view_idx(core.active_view)
|
local idx = node:get_view_idx(core.active_view)
|
||||||
|
|
Loading…
Reference in New Issue