Split out reload functionality to actual document, and added in a thread to check the document, in the cases where it wouldn't be covered by dirwatch.

This commit is contained in:
Adam Harrison authored and jgmdev committed 2022-05-15 15:24:17 -04:00
1 parent d56f4e1ee5
commit 173370694e
3 files changed
+45 -19

No files matched your search

+4
View File
@@ -466,6 +466,10 @@ local commands = {
command.perform("doc:save-as")
end
end,
["doc:reload"] = function()
doc():reload()
end,
["file:rename"] = function()
local old_filename = doc().filename