composefilepickermodal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dir string, fileNames []string, activeName string, termHeight int) tea.Model

New lists the YAML files in dir for switching the active compose file. activeName (the base name of the loaded file) is marked, and the cursor starts on it. Enter switches to the highlighted file, Esc cancels.

termHeight is the terminal height in rows - a directory can hold more compose files than the screen has room for, so the list is sized to fit rather than to len(items). See chrome.ModalListHeight.

Types

type Model

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

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() tea.View

Jump to

Keyboard shortcuts

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