chdir

package
v1.18.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(svc sdk.Service) sdk.Plugin

Types

type Plugin

type Plugin struct {
	sdk.PluginBase
	// contains filtered or unexported fields
}

func (*Plugin) Activate

func (p *Plugin) Activate() tea.Cmd

func (*Plugin) Configure

func (p *Plugin) Configure(cfg map[string]interface{}) error

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) Init

func (p *Plugin) Init(deps *sdk.PluginDeps) tea.Cmd

func (*Plugin) Ready

func (p *Plugin) Ready() bool

func (*Plugin) SetMembers

func (p *Plugin) SetMembers(members []string)

SetMembers configures the list of chdir candidates. Path resolution is the App's responsibility — the plugin only emits relative paths.

func (*Plugin) Stack added in v1.5.0

func (p *Plugin) Stack() *sdk.Stack

func (*Plugin) Update

func (p *Plugin) Update(msg tea.Msg) (sdk.Plugin, tea.Cmd)

func (*Plugin) View

func (p *Plugin) View(width, height int) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL