Add macros

This commit is contained in:
Krzosa Karol
2026-03-21 17:09:40 +01:00
parent b04b566681
commit aff3403404
3 changed files with 24 additions and 1 deletions

View File

@@ -48,7 +48,7 @@
- [ ] Undo kinds (to enable history in fuzzy buffers)
- [ ] Add undo kind. Snapshot kind, so that history is possible in weird buffers without paying a huge memory cost. The idea is that we would store the exact buffer state to replace with, editor would just save history of first line etc.
- [ ] Macros
- [x] Macros
- [ ] Regex
- [ ] ctags based indexing
- [ ] WordComplete
@@ -874,6 +874,9 @@ void MainLoop() {
FrameEvents.len = 0;
GetEventsForFrame(&FrameEvents);
For (FrameEvents) {
if (RecordingMacro) {
Add(&MacroPlayback, it);
}
#if PLUGIN_RECORD_EVENTS
if (it.kind != EVENT_UPDATE && !Testing) {
Serialize(EventBuffer, &it);