feat: Allow command palette to work with previous results

This commit is contained in:
WerWolv
2024-12-23 23:42:45 +01:00
parent 9274fac8e1
commit 2ae69e8e72
4 changed files with 39 additions and 10 deletions

View File

@@ -5,6 +5,7 @@
#include <imgui.h>
#include <vector>
#include <hex/api/content_registry.hpp>
namespace hex::plugin::builtin {
@@ -35,7 +36,7 @@ namespace hex::plugin::builtin {
struct CommandResult {
std::string displayResult;
std::string matchedCommand;
std::function<void(std::string)> executeCallback;
ContentRegistry::CommandPaletteCommands::impl::ExecuteCallback executeCallback;
};
bool m_commandPaletteOpen = false;
@@ -54,4 +55,4 @@ namespace hex::plugin::builtin {
std::vector<CommandResult> getCommandResults(const std::string &input);
};
}
}