Documentation
¶
Overview ¶
Package sidebar is the file-browser sidebar TUI component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActiveBorderStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("62")) InactiveBorderStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("240")) SelectedItemStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("62")). Bold(true) NormalItemStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("252")) )
Sidebar lipgloss styles, updated by ApplyTheme.
Functions ¶
func ApplyTheme ¶
ApplyTheme updates sidebar style vars from theme colors.
Types ¶
type Model ¶
type Model struct {
Entries []vfiles.FileEntry
Height int
Width int
Section Section
// contains filtered or unexported fields
}
Model is the sidebar component.
func (*Model) LoadEntries ¶
func (s *Model) LoadEntries()
LoadEntries refreshes the file list for the current section.
func (Model) SelectedPath ¶
SelectedPath returns the file path of the currently highlighted entry.
Click to show internal directories.
Click to hide internal directories.