Documentation
¶
Index ¶
- Constants
- func ColorizeCommand(cmd string, textStyle, matchedStyle lipgloss.Style) string
- type CommandHistoryEntry
- type CommandHistorySource
- type FlashMessageView
- type Model
- func (m *Model) AddWithCommand(text string, command string, error error) uint64
- func (m *Model) Any() bool
- func (m *Model) CommandHistorySnapshot() []CommandHistoryEntry
- func (m *Model) DeleteCommandHistoryByID(id uint64)
- func (m *Model) DeleteOldest()
- func (m *Model) Init() tea.Cmd
- func (m *Model) LiveMessagesCount() int
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) ViewRect(dl *render.DisplayContext, box layout.Box)
Constants ¶
View Source
const HistoryLimit = 50
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandHistoryEntry ¶ added in v0.10.0
type CommandHistorySource ¶ added in v0.10.0
type CommandHistorySource interface {
CommandHistorySnapshot() []CommandHistoryEntry
DeleteCommandHistoryByID(id uint64)
}
type FlashMessageView ¶ added in v0.9.7
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func New ¶
func New(context *context.MainContext) *Model
func (*Model) AddWithCommand ¶ added in v0.10.0
func (*Model) CommandHistorySnapshot ¶ added in v0.10.0
func (m *Model) CommandHistorySnapshot() []CommandHistoryEntry
func (*Model) DeleteCommandHistoryByID ¶ added in v0.10.0
func (*Model) DeleteOldest ¶
func (m *Model) DeleteOldest()
func (*Model) LiveMessagesCount ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.