Documentation
README
Create Plugin
Architecture Overview
- Bubble Tea model:
internal/app/model.goowns the active plugin index, dispatches key events, renders plugin views. - Registry:
internal/plugin/registry.gostores plugins, handles lifecycle with panic protection, keeps anunavailablemap whenInitfails (silent degradation). - Plugin contract:
internal/plugin/plugin.godefines the interface every plugin must satisfy. - Context:
internal/plugin/context.goprovidesWorkDir,ConfigDir,Adapters,EventBus,Logger,Epoch, andKeymap. - Keymap:
internal/keymapmaps keys to command IDs. Footer/help reads bindings by context usingPlugin.Commands()+Plugin.FocusContext().
Plugin Interface
Every plugin must implement all of these methods:
This is the opening of the README. Read the full README on GitHub.