Set initial text for core:change-project-folder

This commit is contained in:
Francesco Abbate 2021-08-27 15:22:09 +02:00
parent bb6b99b167
commit a8f4c0c4e5
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ command.add(nil, {
end,
["core:change-project-folder"] = function()
local dirname = common.dirname(core.project_dir)
core.command_view:set_text(dirname .. PATHSEP)
core.command_view:enter("Change Project Folder", function(text, item)
text = system.absolute_path(common.home_expand(item and item.text or text))
if text == core.project_dir then return end