Documentation ¶
Index ¶
- func GetKeyMap() viewportKeyMap
- type Model
- func (m *Model) HideToast()
- func (m Model) Saving() bool
- func (m *Model) ScrollToBottom()
- func (m Model) SelectedContentIdx() int
- func (m Model) SelectionEnabled() bool
- func (m *Model) SetContent(content []string)
- func (m *Model) SetHeader(header []string)
- func (m *Model) SetSelectedContentIdx(n int)
- func (m *Model) SetSelectionEnabled(selectionEnabled bool)
- func (m *Model) SetShowPrompt(v bool)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetStringToHighlight(h string)
- func (m *Model) SetWrapText(wrapText bool)
- func (m *Model) SetXOffset(n int)
- func (m *Model) ToggleWrapText()
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type SaveStatusMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct { HeaderStyle lipgloss.Style SelectedContentStyle lipgloss.Style HighlightStyle lipgloss.Style ContentStyle lipgloss.Style // ConditionalStyle styles lines containing key with corresponding style in value ConditionalStyle map[string]lipgloss.Style // contains filtered or unexported fields }
func (*Model) ScrollToBottom ¶ added in v0.2.0
func (m *Model) ScrollToBottom()
func (Model) SelectedContentIdx ¶
func (Model) SelectionEnabled ¶ added in v0.3.1
func (*Model) SetContent ¶
func (*Model) SetSelectedContentIdx ¶
SetSelectedContentIdx sets the selectedContentIdx with bounds. Adjusts yOffset as necessary.
func (*Model) SetSelectionEnabled ¶
func (*Model) SetShowPrompt ¶ added in v0.2.0
func (*Model) SetStringToHighlight ¶
func (*Model) SetWrapText ¶
func (*Model) SetXOffset ¶
func (*Model) ToggleWrapText ¶
func (m *Model) ToggleWrapText()
type SaveStatusMsg ¶
type SaveStatusMsg struct {
SuccessMessage, Err string
}
Click to show internal directories.
Click to hide internal directories.