mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
feat: Added New File option to the GNOME launcher and a --new cli option
This commit is contained in:
@@ -116,6 +116,10 @@ namespace hex::plugin::builtin {
|
||||
hex::subcommands::forwardSubCommand("open", fullPaths);
|
||||
}
|
||||
|
||||
void handleNewCommand(const std::vector<std::string> &) {
|
||||
hex::subcommands::forwardSubCommand("new", {});
|
||||
}
|
||||
|
||||
void handleCalcCommand(const std::vector<std::string> &args) {
|
||||
if (args.empty()) {
|
||||
hex::log::println("No expression provided!");
|
||||
@@ -386,6 +390,10 @@ namespace hex::plugin::builtin {
|
||||
RequestOpenFile::post(arg);
|
||||
}
|
||||
});
|
||||
|
||||
hex::subcommands::registerSubCommand("new", [](const std::vector<std::string> &){
|
||||
RequestOpenWindow::post("Create File");
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user