tui

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

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

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