From 0362d76b399b6991a2c7f1f38128da242e37578b Mon Sep 17 00:00:00 2001 From: myk002 Date: Mon, 5 Dec 2022 17:08:50 -0800 Subject: [PATCH] list enableable scripts in the `enable` builtin --- library/Core.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/Core.cpp b/library/Core.cpp index 836772c04..33d9c43b2 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -826,9 +826,14 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, v "%20s\t%-3s%s\n", (plug->getName()+":").c_str(), plug->is_enabled() ? "on" : "off", - plug->can_set_enabled() ? "" : " (controlled elsewhere)" + plug->can_set_enabled() ? "" : " (controlled internally)" ); } + + auto L = Lua::Core::State; + Lua::StackUnwinder top(L); + Lua::CallLuaModuleFunction(con, L, + "plugins.script-manager", "list"); } } else if (first == "ls" || first == "dir")