Documentation
¶
Index ¶
- type HelpContext
- type Model
- func (m *Model) Hide()
- func (m Model) Init() tea.Cmd
- func (m Model) IsVisible() bool
- func (m *Model) SetContext(ctx HelpContext)
- func (m *Model) SetProviderName(name string)
- func (m *Model) Show()
- func (m *Model) Toggle()
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type Shortcut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelpContext ¶
type HelpContext int
HelpContext represents which view the help is being shown in
const ( GlobalContext HelpContext = iota HomeContext SearchContext ResultsContext EpisodesContext SeasonsContext AniListContext DownloadsContext SettingsContext HistoryContext ProviderStatusContext )
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the help panel state
func (*Model) SetContext ¶
func (m *Model) SetContext(ctx HelpContext)
SetContext sets the current help context
func (*Model) SetProviderName ¶
SetProviderName sets the current provider name
type Shortcut ¶
type Shortcut struct {
Key string
Description string
Context []HelpContext
}
Shortcut represents a keyboard shortcut with its description
Click to show internal directories.
Click to hide internal directories.