sys: Fixed open webpage command, added run command

This commit is contained in:
WerWolv
2021-08-22 21:43:31 +02:00
parent 08ca626b2f
commit d3a227d0bc
4 changed files with 34 additions and 6 deletions

View File

@@ -37,6 +37,16 @@ namespace hex::plugin::builtin {
hex::openWebpage(input);
});
hex::ContentRegistry::CommandPaletteCommands::add(
hex::ContentRegistry::CommandPaletteCommands::Type::SymbolCommand,
"$", "hex.builtin.command.cmd.desc",
[](auto input) {
return hex::format("hex.builtin.command.cmd.result"_lang, input.data());
},
[](auto input) {
hex::runCommand(input);
});
}
}