Versions in this module Expand all Collapse all v1 v1.1.0 Apr 14, 2024 v1.0.0 Apr 6, 2024 Changes in this version + const CreateDirectoryState + const CreateFileState + const IdleState + const MoveState + const RenameState + func ConvertBytesToSizeString(size int64) string + type DirectoryItem struct + Details string + Extension string + FileInfo os.FileInfo + FileSize string + IsDirectory bool + Name string + Path string + type Model struct + CurrentDirectory string + Cursor int + Disabled bool + State treeState + StatusMessage string + StatusMessageLifetime time.Duration + func New(startDir string) Model + func (m *Model) CreateDirectoryCmd(name string) tea.Cmd + func (m *Model) CreateFileCmd(name string) tea.Cmd + func (m *Model) NewStatusMessageCmd(s string) tea.Cmd + func (m *Model) RenameDirectoryItemCmd(originalName, newName string) tea.Cmd + func (m *Model) SetDisabled(disabled bool) + func (m *Model) SetSelectionPath(path string) + func (m *Model) SetShowIcons(show bool) + func (m *Model) SetSize(width, height int) + func (m *Model) SetTheme(selectedItemColor, unselectedItemColor lipgloss.AdaptiveColor) + func (m Model) GetDirectoryListingCmd(directoryName string) tea.Cmd + func (m Model) GetSelectedItem() DirectoryItem + func (m Model) GetTotalItems() int + func (m Model) Init() tea.Cmd + func (m Model) MoveDirectoryItemCmd(source, destination string) tea.Cmd + func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) + func (m Model) View() string