Documentation ¶
Index ¶
- func HumanizeTime(s int) string
- type Item
- type Model
- func (m *Model) AddItems(items []Item)
- func (m *Model) GetActiveItem() int
- func (m Model) GetCursorItem() (Item, int)
- func (m Model) GetDuration() int
- func (m Model) GetHeight() int
- func (m Model) GetId() string
- func (m Model) GetItems() []Item
- func (m Model) GetLastItem() (Item, int)
- func (m Model) GetTextHeight() int
- func (m Model) GetTextWidth() int
- func (m *Model) GetTitle() string
- func (m *Model) HandleKeys(msg tea.KeyMsg) tea.Cmd
- func (m Model) Init() tea.Cmd
- func (m Model) Len() int
- func (m Model) RenderBox(title, content string, borderStyle lipgloss.Style) string
- func (m Model) RenderLine(line string, style lipgloss.Style) string
- func (m *Model) Search(searchTerm string)
- func (m *Model) SearchExact(searchTerm string) bool
- func (m *Model) SetActiveItem(pos int)
- func (m *Model) SetCursor(c int)
- func (m *Model) SetCursorDown()
- func (m *Model) SetCursorToNextMatch(searchTerm string)
- func (m *Model) SetCursorUp()
- func (m *Model) SetIsActive(isActive bool)
- func (m *Model) SetItems(items []Item, cursorPos int, id string)
- func (m *Model) SetSize(width, height int)
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Model) UpdateViewPort()
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanizeTime ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) GetActiveItem ¶
func (Model) GetCursorItem ¶
func (Model) GetDuration ¶
func (Model) GetLastItem ¶
func (Model) GetTextHeight ¶
func (Model) GetTextWidth ¶
func (*Model) SearchExact ¶
func (*Model) SetActiveItem ¶
func (*Model) SetCursorDown ¶
func (m *Model) SetCursorDown()
func (*Model) SetCursorToNextMatch ¶
func (*Model) SetCursorUp ¶
func (m *Model) SetCursorUp()
func (*Model) SetIsActive ¶
func (*Model) UpdateViewPort ¶
func (m *Model) UpdateViewPort()
Click to show internal directories.
Click to hide internal directories.