Documentation
¶
Index ¶
- type KeyMap
- type Model
- func (m Model) AtBottom() bool
- func (m Model) AtTop() bool
- func (m *Model) Blur()
- func (m Model) Cursor() int
- func (m *Model) Focus()
- func (m Model) Focused() bool
- func (m Model) Height() int
- func (m Model) Init() tea.Cmd
- func (m Model) RowAtCursor() string
- func (m Model) Rows() []string
- func (m *Model) SetCursor(n int)
- func (m *Model) SetHeight(h int)
- func (m *Model) SetRows(r []string)
- func (m *Model) SetStyles(s Styles)
- func (m *Model) SetWidth(w int)
- func (m *Model) ToBottom()
- func (m *Model) ToNext(n int)
- func (m *Model) ToPrevious(n int)
- func (m *Model) ToTop()
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m *Model) UpdateViewport()
- func (m Model) View() string
- func (m Model) Width() int
- type Option
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
type KeyMap struct {
LineUp key.Binding
LineDown key.Binding
PageUp key.Binding
PageDown key.Binding
ToTop key.Binding
ToBottom key.Binding
}
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
type Model ¶
type Model struct {
KeyMap KeyMap
Title string
ScrollAhead int
// contains filtered or unexported fields
}
func (Model) RowAtCursor ¶
func (*Model) ToPrevious ¶
func (*Model) UpdateViewport ¶
func (m *Model) UpdateViewport()
type Option ¶
type Option func(*Model)
func WithFocused ¶
func WithHeight ¶
func WithKeyMap ¶
func WithScrollAhead ¶
func WithStyles ¶
Click to show internal directories.
Click to hide internal directories.