Documentation
¶
Index ¶
Constants ¶
const ( UIInitializing = iota UIInitialized )
Possible UIState values.
const TextareaMaxHeight = 15
TextareaMaxHeight is the maximum height of the prompt textarea.
const TextareaMinHeight = 3
TextareaMinHeight is the minimum height of the prompt textarea.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶ added in v0.3.28
type Filter struct {
// contains filtered or unexported fields
}
Filter coalesces high-frequency terminal mouse input before it reaches the Bubble Tea update loop. It is safe for use with tea.WithFilter.
func NewFilter ¶ added in v0.3.28
func NewFilter() *Filter
NewFilter returns a Bubble Tea input filter that coalesces high-frequency terminal mouse input before it reaches the update queue.
type Header ¶ added in v0.3.28
type Header struct {
// contains filtered or unexported fields
}
Header is the model for the header.
type KeyMap ¶ added in v0.3.28
type KeyMap struct {
Editor struct {
SendMessage key.Binding
OpenEditor key.Binding
Newline key.Binding
AddImage key.Binding
PasteImage key.Binding
MentionFile key.Binding
Commands key.Binding
// Attachments key maps
AttachmentDeleteMode key.Binding
Escape key.Binding
DeleteAllAttachments key.Binding
// History navigation
HistoryPrev key.Binding
HistoryNext key.Binding
// CopySelection copies the current textarea selection to the
// clipboard.
CopySelection key.Binding
// CutSelection copies the current textarea selection to the
// clipboard and deletes it from the textarea.
CutSelection key.Binding
// SelectAll selects all text in the textarea.
SelectAll key.Binding
// PasteText pastes clipboard text into the textarea, as an
// alternative to bracketed paste.
PasteText key.Binding
}
Chat struct {
NewSession key.Binding
AddAttachment key.Binding
Cancel key.Binding
Tab key.Binding
Details key.Binding
TogglePills key.Binding
ToggleSidebar key.Binding
PillLeft key.Binding
PillRight key.Binding
Down key.Binding
Up key.Binding
UpDown key.Binding
DownOneItem key.Binding
UpOneItem key.Binding
UpDownOneItem key.Binding
PageDown key.Binding
PageUp key.Binding
HalfPageDown key.Binding
HalfPageUp key.Binding
Home key.Binding
End key.Binding
EndFollow key.Binding
Copy key.Binding
ClearHighlight key.Binding
Expand key.Binding
ScrollLeft key.Binding
ScrollRight key.Binding
FocusSidebar key.Binding
FocusChat key.Binding
}
Initialize struct {
Yes,
No,
Enter,
Switch key.Binding
}
// Global key maps
Quit key.Binding
Help key.Binding
Commands key.Binding
Models key.Binding
Suspend key.Binding
Sessions key.Binding
Tab key.Binding
ToggleYolo key.Binding
ShiftTab key.Binding
}
KeyMap holds the key bindings for the UI.
func DefaultKeyMap ¶ added in v0.3.28
func DefaultKeyMap() KeyMap
type Status ¶ added in v0.3.28
type Status struct {
// contains filtered or unexported fields
}
Status is the status bar and help model.
func (*Status) Clear ¶ added in v0.3.28
func (s *Status) Clear()
Clear clears the status info message.
func (*Status) SetHideHelp ¶ added in v0.3.28
SetHideHelp sets whether the app is on the onboarding flow.
func (*Status) ShowingAll ¶ added in v0.3.28
ShowingAll returns whether the full help view is shown.
func (*Status) ToggleHelp ¶ added in v0.3.28
func (s *Status) ToggleHelp()
ToggleHelp toggles the full help view.
type UI ¶ added in v0.3.28
type UI struct {
// contains filtered or unexported fields
}
UI represents the main user interface model.
func (*UI) FullHelp ¶ added in v0.3.28
FullHelp implements help.KeyMap.
func (*UI) ShortHelp ¶ added in v0.3.28
ShortHelp implements help.KeyMap.