Documentation ¶
Index ¶
- func Draw(page Page) error
- func ExitCmd() tea.Msg
- func PopPageCmd() tea.Msg
- func PushPageCmd(page Page) tea.Cmd
- func ReloadCmd(params map[string]any) tea.Cmd
- func RenderItem(title string, subtitle string, accessories []string, width int, selected bool) string
- type Checkbox
- type Detail
- func (d *Detail) Blur() tea.Cmd
- func (d *Detail) Focus() tea.Cmd
- func (d *Detail) Init() tea.Cmd
- func (c *Detail) RefreshContent() error
- func (d *Detail) SetIsLoading(isLoading bool) tea.Cmd
- func (c *Detail) SetSize(width, height int)
- func (c *Detail) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c *Detail) View() string
- type DetailMsg
- type DropDown
- func (d *DropDown) Blur()
- func (d *DropDown) Focus() tea.Cmd
- func (dd DropDown) HasMatch() bool
- func (dd *DropDown) Height() int
- func (dd *DropDown) SetWidth(width int)
- func (d DropDown) Title() string
- func (d *DropDown) Update(msg tea.Msg) (FormInput, tea.Cmd)
- func (d DropDown) Value() any
- func (dd DropDown) View() string
- type DropDownItem
- type ExitMsg
- type Filter
- func (m *Filter) CursorDown()
- func (m *Filter) CursorUp()
- func (f *Filter) FilterItems(query string)
- func (m Filter) Init() tea.Cmd
- func (f *Filter) Select(id string)
- func (f Filter) Selection() FilterItem
- func (f *Filter) SetItems(items ...FilterItem)
- func (f *Filter) SetSize(width, height int)
- func (f Filter) Update(msg tea.Msg) (Filter, tea.Cmd)
- func (m Filter) View() string
- type FilterItem
- type Form
- func (c *Form) Blur() tea.Cmd
- func (c *Form) CurrentItem() FormInput
- func (c Form) Focus() tea.Cmd
- func (c Form) Init() tea.Cmd
- func (c *Form) ScrollViewport()
- func (c *Form) SetIsLoading(isLoading bool) tea.Cmd
- func (c *Form) SetSize(width, height int)
- func (c Form) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c *Form) View() string
- type FormInput
- type FormItem
- type History
- type IsLoadingMsg
- type List
- func (c *List) Blur() tea.Cmd
- func (c *List) Focus() tea.Cmd
- func (c *List) Init() tea.Cmd
- func (c List) Query() string
- func (c List) Selection() (types.ListItem, bool)
- func (l *List) SetActions(actions ...types.Action)
- func (l *List) SetEmptyText(text string)
- func (c *List) SetIsLoading(isLoading bool) tea.Cmd
- func (c *List) SetItems(items ...types.ListItem)
- func (c *List) SetQuery(query string)
- func (c *List) SetSize(width, height int)
- func (c *List) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c List) View() string
- type ListItem
- type Match
- type Page
- type Paginator
- type PopPageMsg
- type PushPageMsg
- type QueryChangeMsg
- type ReloadMsg
- type RootList
- type Runner
- func (c *Runner) Blur() tea.Cmd
- func (c *Runner) Focus() tea.Cmd
- func (c *Runner) Init() tea.Cmd
- func (c *Runner) Reload(input types.CommandInput) tea.Cmd
- func (c *Runner) SetIsLoading(isLoading bool) tea.Cmd
- func (c *Runner) SetSize(w int, h int)
- func (c *Runner) Update(msg tea.Msg) (Page, tea.Cmd)
- func (c *Runner) View() string
- type StatusBar
- func (h *StatusBar) Focus() tea.Cmd
- func (h StatusBar) Init() tea.Cmd
- func (c *StatusBar) SetActions(actions ...types.Action)
- func (p *StatusBar) SetIsLoading(isLoading bool) tea.Cmd
- func (h *StatusBar) ShowInput()
- func (p StatusBar) Update(msg tea.Msg) (StatusBar, tea.Cmd)
- func (h StatusBar) Value() string
- func (c StatusBar) View() string
- type SubmitMsg
- type TextArea
- type TextInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopPageCmd ¶
func PushPageCmd ¶
Types ¶
type Checkbox ¶
type Checkbox struct {
// contains filtered or unexported fields
}
func NewCheckbox ¶
type DropDown ¶
type DropDown struct {
// contains filtered or unexported fields
}
func NewDropDown ¶
type DropDownItem ¶
type DropDownItem struct {
// contains filtered or unexported fields
}
func (DropDownItem) FilterValue ¶
func (d DropDownItem) FilterValue() string
func (DropDownItem) ID ¶
func (d DropDownItem) ID() string
type Filter ¶
type Filter struct {
Width, Height int
Query string
Less func(i, j FilterItem) bool
Reversed bool
EmptyText string
DrawLines bool
// contains filtered or unexported fields
}
func NewFilter ¶
func NewFilter(items ...FilterItem) Filter
func (*Filter) CursorDown ¶
func (m *Filter) CursorDown()
func (*Filter) FilterItems ¶
func (Filter) Selection ¶
func (f Filter) Selection() FilterItem
func (*Filter) SetItems ¶
func (f *Filter) SetItems(items ...FilterItem)
type FilterItem ¶
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
func (*Form) CurrentItem ¶
func (*Form) ScrollViewport ¶
func (c *Form) ScrollViewport()
type IsLoadingMsg ¶
type IsLoadingMsg struct{}
type List ¶
type List struct { Actions []types.Action OnQueryChange func(string) tea.Cmd OnSelect func(string) tea.Cmd // contains filtered or unexported fields }
func (*List) SetActions ¶
func (*List) SetEmptyText ¶
type Paginator ¶
type Paginator struct {
// contains filtered or unexported fields
}
func NewPaginator ¶
type PopPageMsg ¶
type PopPageMsg struct{}
type PushPageMsg ¶
type PushPageMsg struct {
Page Page
}
type QueryChangeMsg ¶
type QueryChangeMsg string
type RootList ¶
type RootList struct {
// contains filtered or unexported fields
}
func NewRootList ¶
func NewRootList(title string, extensionMap extensions.ExtensionMap) *RootList
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(extension extensions.Extension, command types.CommandSpec, input types.CommandInput) *Runner
type StatusBar ¶
type StatusBar struct { Width int // contains filtered or unexported fields }
func NewStatusBar ¶
func (*StatusBar) SetActions ¶
type TextArea ¶
func NewTextArea ¶
type TextInput ¶
func NewTextInput ¶
Click to show internal directories.
Click to hide internal directories.