Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMsg ¶ added in v0.0.57
type ChatMsg struct {
SessionID string
}
ChatMsg signals that a session should be opened for chat
type CloseMsg ¶ added in v0.0.119
type CloseMsg struct{}
CloseMsg signals that the browser should close and return to its parent view.
type DeleteConfirmMsg ¶
type DeleteConfirmMsg struct {
SessionID string
}
DeleteConfirmMsg signals a delete was confirmed
type InspectMsg ¶
type InspectMsg struct {
SessionID string
}
InspectMsg signals that a session should be inspected
type KeyMap ¶
type KeyMap struct {
Quit key.Binding
Up key.Binding
Down key.Binding
PageUp key.Binding
PageDown key.Binding
GoToTop key.Binding
GoToBottom key.Binding
Select key.Binding
Inspect key.Binding
Delete key.Binding
Search key.Binding
Sort key.Binding
Filter key.Binding
ToggleFTS key.Binding
}
KeyMap defines keybindings for the sessions browser
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the sessions browser model
func (*Model) ChatSessionID ¶ added in v0.0.57
ChatSessionID returns the session ID the user wants to chat with, if any. Check this after the TUI exits to determine if chat should be launched.
func (*Model) SetEmbedded ¶ added in v0.0.119
SetEmbedded enables parent-managed close behavior for embedded browsers.
func (*Model) SetPreferredSessionID ¶ added in v0.0.119
SetPreferredSessionID selects a session after the next refresh, if present.
type StatusFilter ¶
type StatusFilter int
StatusFilter defines which session statuses to show
const ( StatusAll StatusFilter = iota StatusActive StatusComplete StatusError )
func (StatusFilter) String ¶
func (s StatusFilter) String() string