tool

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 11 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
	layout.Heightable

	// Message returns the underlying message
	Message() *types.Message
	// SetRenderer sets the markdown renderer
	SetRenderer(renderer *glamour.TermRenderer)
	// Focus sets focus on the tool for handling input
	Focus() tea.Cmd
	// Blur removes focus from the tool
	Blur()
}

Model represents a view that can render a message

func New

func New(msg *types.Message, a *app.App) 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