message

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 8 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 interface {
	layout.Model
	layout.Sizeable

	// Render returns the rendered content for this message view
	Render(width int) string
	// Height returns the height this view will take when rendered at the given width
	Height(width int) int
	// Message returns the underlying message
	Message() *types.Message
	// SetRenderer sets the markdown renderer
	SetRenderer(renderer *glamour.TermRenderer)
}

Model represents a view that can render a message

func New

func New(msg *types.Message) Model

New creates a new message view

Jump to

Keyboard shortcuts

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