Documentation
¶
Index ¶
- func EditInfoCmd() tea.Cmd
- func HideInfoCmd() tea.Cmd
- func ShowInfoCmd() tea.Cmd
- func ToggleVisibleCmd() tea.Cmd
- func UpdateContentCmd(content string) tea.Cmd
- type EditInfoMsg
- type HideInfoMsg
- type Info
- func (i *Info) AddSections(sections ...*Section) *Info
- func (i *Info) Hide()
- func (i *Info) HideKeys() *Info
- func (m *Info) Init() tea.Cmd
- func (i *Info) NewSection() *Section
- func (i *Info) Render() string
- func (i *Info) SetContent(c string) *Info
- func (i *Info) SetHeight(h int) *Info
- func (i *Info) SetSections(sections ...*Section) *Info
- func (i *Info) SetSize(w, h int) *Info
- func (i *Info) SetTitle(title string) *Info
- func (m *Info) SetToggle(toggle, help string) *Info
- func (i *Info) Show()
- func (i Info) Title() string
- func (i *Info) ToggleVisible()
- func (m *Info) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Info) View() string
- type Section
- type ShowInfoMsg
- type Style
- type ToggleVisibleMsg
- type UpdateContentMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditInfoCmd ¶
func HideInfoCmd ¶
func ShowInfoCmd ¶
func ToggleVisibleCmd ¶
func UpdateContentCmd ¶
Types ¶
type EditInfoMsg ¶
type EditInfoMsg struct {
}
type HideInfoMsg ¶
type HideInfoMsg struct{}
type Info ¶
type Info struct {
Model viewport.Model
Visible bool
Editable bool
Sections []*Section
Style Style
Toggle *key.Key
// contains filtered or unexported fields
}
func (*Info) AddSections ¶
func (*Info) NewSection ¶
func (*Info) SetContent ¶
func (*Info) SetSections ¶
func (*Info) ToggleVisible ¶
func (i *Info) ToggleVisible()
type Section ¶
type Section struct {
// contains filtered or unexported fields
}
func NewSection ¶
func NewSection() *Section
type ShowInfoMsg ¶
type ShowInfoMsg struct{}
type Style ¶
func DefaultStyles ¶
func DefaultStyles() Style
type UpdateContentMsg ¶
type UpdateContentMsg struct {
Content string
}
Click to show internal directories.
Click to hide internal directories.