Binding parser, TestFunctions
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user