metadata

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.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 MetadataMsg

type MetadataMsg struct {
	Meta backend.FileMetadata
	Path string // path that was requested (to discard stale results)
	Err  error
}

MetadataMsg delivers fetched metadata back to the app.

type Model

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

Model displays file metadata in a bordered panel.

func New

func New(t theme.Theme) Model

New creates a new metadata panel.

func (*Model) Clear

func (m *Model) Clear()

Clear resets the pane to empty.

func (*Model) SetError

func (m *Model) SetError(err error)

SetError shows an error message.

func (*Model) SetLoading

func (m *Model) SetLoading()

SetLoading puts the pane into loading state.

func (*Model) SetMetadata

func (m *Model) SetMetadata(meta backend.FileMetadata)

SetMetadata updates the displayed metadata.

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

SetSize sets the outer dimensions (including border).

func (*Model) SetTheme

func (m *Model) SetTheme(t theme.Theme)

SetTheme updates the pane theme.

func (Model) View

func (m Model) View() string

View renders the metadata panel with border.

Jump to

Keyboard shortcuts

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