Add initial suggestion in open-project-folder

This commit is contained in:
Francesco Abbate 2021-09-07 15:23:41 +02:00
parent 90c721b823
commit 67d7b894ae
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ command.add(nil, {
end, end,
["core:open-project-folder"] = function() ["core:open-project-folder"] = function()
local dirname = common.dirname(core.project_dir)
if dirname then
core.command_view:set_text(common.home_encode(dirname) .. PATHSEP)
end
core.command_view:enter("Open Project", function(text, item) core.command_view:enter("Open Project", function(text, item)
text = common.home_expand(item and item.text or text) text = common.home_expand(item and item.text or text)
local path_stat = system.get_file_info(text) local path_stat = system.get_file_info(text)