From 67d7b894ae90e04413a2075d5e2f7cf4a8976bef Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Tue, 7 Sep 2021 15:23:41 +0200 Subject: [PATCH] Add initial suggestion in open-project-folder --- data/core/commands/core.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/core/commands/core.lua b/data/core/commands/core.lua index 215ff654..432ded89 100644 --- a/data/core/commands/core.lua +++ b/data/core/commands/core.lua @@ -164,6 +164,10 @@ command.add(nil, { end, ["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) text = common.home_expand(item and item.text or text) local path_stat = system.get_file_info(text)