Documentation ¶
Index ¶
- func Draw(page Page, maxHeight int) error
- func ExitCmd() tea.Msg
- func IsRootCommand(command types.CommandSpec) bool
- func PopPageCmd() tea.Msg
- func PushPageCmd(page Page) tea.Cmd
- func RenderItem(title string, subtitle string, accessories []string, width int, selected bool) string
- func ShellCommand(ref CommandRef) string
- type Checkbox
- type CommandInput
- type CommandRef
- 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() string
- func (dd DropDown) View() string
- type DropDownItem
- type ExitMsg
- type Extension
- type Extensions
- 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 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 (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 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) Run() tea.Msg
- 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
- type SubmitMsg
- type TextArea
- type TextInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRootCommand ¶
func IsRootCommand(command types.CommandSpec) bool
func PopPageCmd ¶
func PushPageCmd ¶
func RenderItem ¶
func ShellCommand ¶
func ShellCommand(ref CommandRef) string
Types ¶
type Checkbox ¶
type Checkbox struct {
// contains filtered or unexported fields
}
func NewCheckbox ¶
type CommandInput ¶
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 Extension ¶
func LoadExtension ¶
type Extensions ¶
type Filter ¶
type Filter struct {
Width, Height int
Query string
Less func(i, j FilterItem) bool
Reversed bool
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 FormItem ¶
func NewFormItem ¶
type IsLoadingMsg ¶
type IsLoadingMsg struct{}
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 RootList ¶
type RootList struct { OnSelect func(id string) // contains filtered or unexported fields }
func NewRootList ¶
func NewRootList(extensions Extensions, items ...types.ListItem) *RootList
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(extensions Extensions, ref CommandRef) *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.