logview

package
v0.0.0-...-4a57d31 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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 Model

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

Model holds the log viewport state.

func New

func New() Model

New creates a log viewport.

func (*Model) IsSearching

func (m *Model) IsSearching() bool

IsSearching returns whether the search prompt is active.

func (*Model) Refresh

func (m *Model) Refresh()

Refresh reloads the log file from disk.

func (*Model) SetFocused

func (m *Model) SetFocused(f bool)

SetFocused sets whether the log pane is focused.

func (*Model) SetLog

func (m *Model) SetLog(id, path string)

SetLog switches to a different log file.

func (*Model) SetSize

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

SetSize sets the available dimensions.

func (*Model) Update

func (m *Model) Update(msg tea.KeyPressMsg) bool

Update handles key input. Returns whether the key was consumed.

func (*Model) View

func (m *Model) View() string

View renders the log viewport.

Jump to

Keyboard shortcuts

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