selector

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package selector provides a TUI file picker component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the bubbletea model for the file selector.

func New

func New(files []string, multi bool) Model

New creates a new file selector model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) SelectedList

func (m Model) SelectedList() []string

SelectedList returns the list of selected file paths.

func (Model) Update

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

Update implements tea.Model.

func (Model) View

func (m Model) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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