add suggestion
This commit is contained in:
parent
5c69b735a8
commit
e54097c38d
|
@ -47,6 +47,12 @@ int main(int argc, char* argv[]) {
|
|||
for (auto script_name : scripts) {
|
||||
lua.LoadToGlobal(script_name);
|
||||
|
||||
parser.AddRule(MakePattern({".", "config", script_name.string().data()}),
|
||||
[&projects](auto& args) {
|
||||
const auto& project = projects.GetProject();
|
||||
OpenFileInEditor(project.GetPathToScripts() / (args[3] + ".lua"));
|
||||
});
|
||||
|
||||
if (script_name == "main") {
|
||||
auto all_scripts = lua.GetListScripts("main");
|
||||
|
||||
|
@ -68,9 +74,6 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (std::find(scripts.begin(), scripts.end(), "main") != scripts.end()) {
|
||||
}
|
||||
} catch (...) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue