filetable

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Width     int
	MaxHeight int
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) Model

func (Model) Finalize

func (m Model) Finalize() tea.Model

func (Model) Init

func (Model) Init() tea.Cmd

func (*Model) SetFiles

func (m *Model) SetFiles(filePaths []string)

func (*Model) SetMaxHeight

func (m *Model) SetMaxHeight(height int)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Option

type Option func(m *Model)

func WithFiles

func WithFiles(filePaths []string) Option

func WithMaxHeight

func WithMaxHeight(height int) Option

Jump to

Keyboard shortcuts

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