Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBrowser ¶ added in v1.8.0
type FileBrowser struct {
// contains filtered or unexported fields
}
FileBrowser is a component for browsing and selecting files
func NewFileBrowser ¶ added in v1.8.0
func NewFileBrowser(startPath string, width, height int) (*FileBrowser, error)
NewFileBrowser creates a new file browser starting at the given path
func (*FileBrowser) CurrentPath ¶ added in v1.8.0
func (fb *FileBrowser) CurrentPath() string
CurrentPath returns the current directory path
func (*FileBrowser) SelectedFile ¶ added in v1.8.0
func (fb *FileBrowser) SelectedFile() string
SelectedFile returns the selected file path
func (*FileBrowser) SetSelectedFile ¶ added in v1.8.0
func (fb *FileBrowser) SetSelectedFile(path string)
SetSelectedFile sets the selected file path
func (*FileBrowser) Update ¶ added in v1.8.0
func (fb *FileBrowser) Update(msg tea.Msg) (*FileBrowser, tea.Cmd)
Update handles user input and updates the file browser state
func (*FileBrowser) View ¶ added in v1.8.0
func (fb *FileBrowser) View() string
View renders the file browser
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func InitialModel ¶
func InitialModel(projectCfg *config.ProjectConfig, registry *infra.Registry) *Model
Click to show internal directories.
Click to hide internal directories.