Documentation ¶
Index ¶
- func Draw(page Page) error
- func ExitCmd() tea.Msg
- func PopPageCmd() tea.Msg
- func PushPageCmd(page Page) tea.Cmd
- func RenderItem(title string, subtitle string, accessories []string, width int, selected bool) string
- 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 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 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 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() 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopPageCmd ¶
func PushPageCmd ¶
Types ¶
type Detail ¶
func (*Detail) RefreshContent ¶
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 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 ¶
Click to show internal directories.
Click to hide internal directories.