Versions in this module Expand all Collapse all v0 v0.20.0 Feb 14, 2025 Changes in this version + const CursorBlink + const CursorHide + const CursorStatic + var DefaultKeyMap = KeyMap + var NewModel = New + func Blink() tea.Msg + func Paste() tea.Msg + type CursorMode int + func (c CursorMode) String() string + type EchoMode int + const EchoNone + const EchoNormal + const EchoPassword + type KeyMap struct + AcceptSuggestion key.Binding + CharacterBackward key.Binding + CharacterForward key.Binding + DeleteAfterCursor key.Binding + DeleteBeforeCursor key.Binding + DeleteCharacterBackward key.Binding + DeleteCharacterForward key.Binding + DeleteWordBackward key.Binding + DeleteWordForward key.Binding + LineEnd key.Binding + LineStart key.Binding + NextSuggestion key.Binding + Paste key.Binding + PrevSuggestion key.Binding + WordBackward key.Binding + WordForward key.Binding + type Model struct + BlinkSpeed time.Duration + CharLimit int + CompletionStyle lipgloss.Style + Cursor cursor.Model + CursorStyle lipgloss.Style + EchoCharacter rune + EchoMode EchoMode + Err error + KeyMap KeyMap + Placeholder string + PlaceholderStyle lipgloss.Style + Prompt string + PromptStyle lipgloss.Style + ShowSuggestions bool + TextStyle lipgloss.Style + Validate ValidateFunc + Width int + func New() Model + func (m *Model) AvailableSuggestions() []string + func (m *Model) Blur() + func (m *Model) CurrentSuggestion() string + func (m *Model) CurrentSuggestionIndex() int + func (m *Model) CursorEnd() + func (m *Model) CursorStart() + func (m *Model) Focus() tea.Cmd + func (m *Model) MatchedSuggestions() []string + func (m *Model) Reset() + func (m *Model) SetCursor(pos int) + func (m *Model) SetCursorMode(mode CursorMode) tea.Cmd + func (m *Model) SetSuggestions(suggestions []string) + func (m *Model) SetValue(s string) + func (m Model) CursorMode() CursorMode + func (m Model) Focused() bool + func (m Model) Position() int + func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) + func (m Model) Value() string + func (m Model) View() string + type ValidateFunc func(string) error