mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
sys: Fixed open webpage command, added run command
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user