Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexConfig ¶
IndexConfig carries the knobs required to build and annotate the tree.
type IndexProgressModel ¶
type IndexProgressModel struct {
// contains filtered or unexported fields
}
IndexProgressModel is a dedicated Bubble Tea model that displays a full-screen progress UI while the filesystem is being indexed into a tree. Once complete the caller can extract the constructed tree and transition to the main UI.
func NewIndexProgressModel ¶
func NewIndexProgressModel(path string, cfg IndexConfig, th theme.Theme) *IndexProgressModel
NewIndexProgressModel creates a model and pre computes root entry count.
func (*IndexProgressModel) Err ¶
func (m *IndexProgressModel) Err() error
Err returns any build error.
func (*IndexProgressModel) Init ¶
func (m *IndexProgressModel) Init() tea.Cmd
Init kicks off asynchronous tree building.
func (*IndexProgressModel) Tree ¶
func (m *IndexProgressModel) Tree() *treeview.Tree[treeview.FileInfo]
Tree returns the constructed tree.
func (*IndexProgressModel) View ¶
func (m *IndexProgressModel) View() tea.View
View renders the progress UI.
type MetadataProgressModel ¶
type MetadataProgressModel struct {
// contains filtered or unexported fields
}
MetadataProgressModel displays progress while fetching metadata from providers.
func NewMetadataProgressModel ¶
func NewMetadataProgressModel(tree *treeview.Tree[treeview.FileInfo], cfg *config.FormatConfig, th theme.Theme) *MetadataProgressModel
NewMetadataProgressModel creates a new metadata progress model.
func (*MetadataProgressModel) Err ¶
func (m *MetadataProgressModel) Err() error
Err returns any fatal error encountered during metadata fetching.
func (*MetadataProgressModel) Init ¶
func (m *MetadataProgressModel) Init() tea.Cmd
Init starts the metadata engine if providers are configured.
func (*MetadataProgressModel) Metadata ¶
func (m *MetadataProgressModel) Metadata() map[string]*provider.Metadata
Metadata returns the fetched metadata.
func (*MetadataProgressModel) View ¶
func (m *MetadataProgressModel) View() tea.View
View renders the progress UI.