Documentation
¶
Index ¶
- func New(svc sdk.Service) sdk.Plugin
- type Plugin
- func (p *Plugin) Activate() tea.Cmd
- func (p *Plugin) Configure(cfg map[string]interface{}) error
- func (p *Plugin) HandleContextChanged(ev sdk.ContextChangedEvent) tea.Cmd
- func (p *Plugin) Init(deps *sdk.PluginDeps) tea.Cmd
- func (p *Plugin) Ready() bool
- func (p *Plugin) SetMembers(members []string)
- func (p *Plugin) Stack() *sdk.Stack
- func (p *Plugin) Update(msg tea.Msg) (sdk.Plugin, tea.Cmd)
- func (p *Plugin) View(width, height int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
sdk.PluginBase
// contains filtered or unexported fields
}
func (*Plugin) HandleContextChanged ¶ added in v1.10.0
func (p *Plugin) HandleContextChanged(ev sdk.ContextChangedEvent) tea.Cmd
HandleContextChanged implements sdk.ContextChangedHandler. Once the app's immutable Context has a WorkingDir, the chdir picker has done its job.
func (*Plugin) SetMembers ¶
SetMembers configures the list of chdir candidates. Path resolution is the App's responsibility — the plugin only emits relative paths.
Click to show internal directories.
Click to hide internal directories.