Documentation
¶
Index ¶
- Constants
- type Action
- type BaseHost
- type Confirm
- func (c *Confirm) Active() bool
- func (c *Confirm) BeginRemoveConfirm()
- func (c *Confirm) Clear()
- func (c *Confirm) HasPending() bool
- func (c *Confirm) RenderDialog() string
- func (c *Confirm) RenderMainOverlay() string
- func (c *Confirm) RequestRemove(eff panel.RemoveEffect) (tea.Model, tea.Cmd)
- func (c *Confirm) Update(msg tea.Msg) (tea.Cmd, bool)
- type ConfirmHost
- type Help
- type HelpHost
- type Prompt
Constants ¶
View Source
const HelpMarkdown = `` /* 775-byte string literal not displayed */
HelpMarkdown is the command reference shown in the help overlay.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseHost ¶
type BaseHost interface {
TeaModel() tea.Model
Styles() theme.Styles
State() session.State
TransitionTo(session.State) bool
Width() int
Height() int
}
BaseHost defines common methods UI components need from the Model.
type Confirm ¶
type Confirm struct {
// contains filtered or unexported fields
}
Confirm owns the remove confirmation dialog.
func NewConfirm ¶
func NewConfirm(host ConfirmHost) *Confirm
NewConfirm returns a confirm component wired to host.
func (*Confirm) BeginRemoveConfirm ¶
func (c *Confirm) BeginRemoveConfirm()
func (*Confirm) HasPending ¶
HasPending reports whether a confirm action is queued.
func (*Confirm) RenderDialog ¶
RenderDialog renders the confirm box (for tests and overlay).
func (*Confirm) RenderMainOverlay ¶
func (*Confirm) RequestRemove ¶
type ConfirmHost ¶
type ConfirmHost interface {
BaseHost
IsConfirming() bool
SetStatus(string)
PaneSizes() (int, int, int, int)
Mutator() coordinator.Mutator
}
ConfirmHost exposes confirm-dialog needs from the app Model.
type Help ¶
type Help struct {
// contains filtered or unexported fields
}
Help owns the F1 command reference overlay.
func (*Help) RenderOverlay ¶
type HelpHost ¶
type HelpHost interface {
BaseHost
IsHelpOverlay() bool
LastState() session.State
ContentWidth() int
ChromeHeights() (int, int)
}
HelpHost exposes help overlay needs from the app Model.
type Prompt ¶
type Prompt struct {
// contains filtered or unexported fields
}
Prompt owns the temporary footer text input.
func (*Prompt) PromptLabel ¶
PromptLabel returns the active prompt label (for tests).
func (*Prompt) RenderFooter ¶
Click to show internal directories.
Click to hide internal directories.