workspaces

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(view *View, state *state.Workspaces, repo repository.RepositoryV2) *Controller

func (*Controller) LoadData

func (c *Controller) LoadData() error

type Item

type Item struct {
	Name *widgets.EditableLabel
	// contains filtered or unexported fields
}

type View

type View struct {
	*ui.Base
	// contains filtered or unexported fields
}

func NewView

func NewView(base *ui.Base) *View

func (*View) AddItem

func (v *View) AddItem(item *domain.Workspace)

func (*View) Filter

func (v *View) Filter(text string)

func (*View) Info added in v0.4.2

func (v *View) Info() navigator.Info

func (*View) Layout

func (v *View) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions

func (*View) OnEnter added in v0.4.2

func (v *View) OnEnter()

func (*View) RemoveItem

func (v *View) RemoveItem(item *domain.Workspace)

func (*View) SetItems

func (v *View) SetItems(items []*domain.Workspace)

func (*View) SetOnDelete

func (v *View) SetOnDelete(f func(w *domain.Workspace))

func (*View) SetOnNew

func (v *View) SetOnNew(f func())

func (*View) SetOnUpdate

func (v *View) SetOnUpdate(f func(w *domain.Workspace))

Jump to

Keyboard shortcuts

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