chat

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FocusedPanel

type FocusedPanel string

FocusedPanel represents which panel is currently focused

const (
	PanelChat   FocusedPanel = "chat"
	PanelEditor FocusedPanel = "editor"
)

type KeyMap

type KeyMap struct {
	Tab    key.Binding
	Quit   key.Binding
	Cancel key.Binding
	Copy   key.Binding
}

KeyMap defines key bindings for the chat page

func DefaultKeyMap

func DefaultKeyMap() KeyMap

DefaultKeyMap returns the default key bindings

type Page

type Page interface {
	layout.Model
	layout.Sizeable
	layout.Help
}

Page represents the main chat page

func New

func New(a *app.App, firstMessage *string) Page

New creates a new chat page

Jump to

Keyboard shortcuts

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