feat: Added New File option to the GNOME launcher and a --new cli option

This commit is contained in:
WerWolv
2025-01-14 17:49:48 +01:00
parent 1c305ca762
commit 4a916ebb89
4 changed files with 16 additions and 0 deletions

View File

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