mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
864230bd0a
Extensions can now intercept key events and wrap the editor's rendered output via ctx.SetEditor/ctx.ResetEditor, enabling vim-like modal editing, custom key bindings, and visual decorators. Key fixes during development: - Yaegi requires closure wrappers for struct function fields (bare function references return zero values across the interpreter boundary) - SetEditor/ResetEditor use async NotifyWidgetUpdate to avoid deadlocking BubbleTea's event loop when called from HandleKey callbacks - distributeHeight now uses renderInput() to account for interceptor Render wrapper in height calculations