component

package
v0.0.0-...-32b6b42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Items    []*model.FileNode
	Cursor   int
	BasePath string
	// 目录展开状态的映射,用于跟踪每个目录是否展开
	ItemsUnderExpandedDir map[*model.FileNode]bool
	// 存储每个目录下的文件列表
	ExpandedDirItems map[*model.FileNode][]*model.FileNode
}

func New

func New() Model

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL