Commands and keybindings

This commit is contained in:
Krzosa Karol
2025-12-16 23:07:16 +01:00
parent 5e7acd4a20
commit 29002c965c
10 changed files with 630 additions and 549 deletions

View File

@@ -38,6 +38,9 @@ Commands TODO:
- Special: non editable, hotkeys don't work etc.
- I'M SETTING ACTIVE WINDOW AFTER COMMAND!!! DO WE CONTINUE WITH THIS?
- CONSIDER AUTOMATING: CheckpointBeforeGoto
- GotoBackward how to handle that in case we want to automate and create on every move?
## Hooks and bindings
```
@@ -50,7 +53,8 @@ struct Hook {
void Command_New() {
...
} RegisterCommand(Command_New, "ctrl-n");
} RegisterCommand(Command_New, "ctrl-n", NOT_VISIBLE_IN_LISTING);
// How do we handle Command_Delete variations????
void Hook_FormatOnSave() {
} RegisterHook(Hook_FormatOnSave, "onsave");