list enableable scripts in the `enable` builtin

develop
myk002 2022-12-05 17:08:50 -08:00 committed by Myk Taylor
parent b3c8d85637
commit 0362d76b39
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

@ -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")