Add quickEditFile method to texteditor

reviewable/pr10088/r1
zwim 1 year ago committed by zwim
parent 50ab620da1
commit cf9d3a0d70

@ -661,4 +661,13 @@ function TextEditor:onOpenLastEditedFile()
end
end
-- quickly open and edit a file
-- calls the done_callback function on close
function TextEditor:quickEditFile(file_path, done_callback, possible_new_file)
if done_callback then
self.whenDoneFunc = done_callback
end
self:checkEditFile(file_path, possible_new_file or false)
end
return TextEditor

Loading…
Cancel
Save