preview

package
v0.0.0-...-074b685 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: GPL-3.0 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 {
	// contains filtered or unexported fields
}

func New

func New(preview string, pattern string) Model

func (Model) ClearPath

func (m Model) ClearPath() Model

func (Model) GetWidth

func (m Model) GetWidth() int

func (Model) Height

func (m Model) Height(height int) Model

func (Model) SetContent

func (m Model) SetContent(preview PreviewResultMsg) Model

func (Model) SetPath

func (m Model) SetPath(path string) (Model, tea.Cmd)

func (Model) Update

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

func (Model) View

func (m Model) View() string

func (Model) Width

func (m Model) Width(width int) Model

type PreviewReadyMsg

type PreviewReadyMsg struct{}

type PreviewResultMsg

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

type ResizeMsg

type ResizeMsg struct {
	Adjust int
}

Jump to

Keyboard shortcuts

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