Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EditorHeightChangedMsg ¶ added in v1.8.2
type EditorHeightChangedMsg struct {
Height int
}
EditorHeightChangedMsg is emitted when the editor height changes (e.g., during resize)
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
Cancel key.Binding
ShiftNewline key.Binding
CtrlJ key.Binding
ExternalEditor key.Binding
ToggleSplitDiff key.Binding
}
KeyMap defines key bindings for the chat page
type Page ¶
type Page interface {
layout.Model
layout.Sizeable
layout.Help
CompactSession(additionalPrompt string) tea.Cmd
Cleanup()
// GetInputHeight returns the current height of the editor/input area (including padding)
GetInputHeight() int
// SetSessionStarred updates the sidebar star indicator
SetSessionStarred(starred bool)
}
Page represents the main chat page
Click to show internal directories.
Click to hide internal directories.