Binding parser, TestFunctions

This commit is contained in:
Krzosa Karol
2025-12-15 23:29:18 +01:00
parent 4e5a0f6a9b
commit 5e7acd4a20
11 changed files with 452 additions and 124 deletions

View File

@@ -37,9 +37,29 @@ Commands TODO:
- Turned off by default
- Special: non editable, hotkeys don't work etc.
- I'M SETTING ACTIVE WINDOW AFTER COMMAND!!! DO WE CONTINUE WITH THIS?
- RegisterCommand(Command_ShowCommands, KEY_P | KEY_CTRL)
## Hooks and bindings
```
struct Hook {
String name;
String trigger;
HookFunction function;
};
void Command_New() {
...
} RegisterCommand(Command_New, "ctrl-n");
void Hook_FormatOnSave() {
} RegisterHook(Hook_FormatOnSave, "onsave");
Array<Hook> Hooks;
```
DESIGN try to make console less special, make stuff reusable etc.