Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input[T any] interface { OnUpdateStart(msg tea.Msg) tea.Cmd View(viewMode ViewMode) string Focus() tea.Cmd Focused() bool Value() string Runes() []rune ResetValue() SetValue(value string) Blur() CursorIndex() int CursorOffset() int SetCursor(cursor int) SetCursorMode(cursorMode cursor.Mode) tea.Cmd Prompt() string SetPrompt(prompt string) Tokens() []Token CurrentToken() Token CurrentTokenRoundDown() Token ShouldSelectSuggestion(suggestion suggestion.Suggestion[T]) bool SuggestionRunes(runes []rune) []rune OnUpdateFinish(msg tea.Msg, suggestion *suggestion.Suggestion[T], isSelected bool) tea.Cmd OnSuggestionChanged(suggestion suggestion.Suggestion[T]) OnExecutorFinished() OnSuggestionUnselected() ShouldClearSuggestions(prevRunes []rune, msg tea.KeyMsg) bool ShouldUnselectSuggestion(prevRunes []rune, msg tea.KeyMsg) bool }
type RoundingBehavior ¶
type RoundingBehavior int
const ( RoundUp RoundingBehavior = iota RoundDown )
type ViewBuilder ¶
type ViewBuilder struct {
// contains filtered or unexported fields
}
func NewViewBuilder ¶
func (ViewBuilder) Last ¶
func (v ViewBuilder) Last() *byte
func (*ViewBuilder) Render ¶
func (v *ViewBuilder) Render(newRunes []rune, column int, style lipgloss.Style)
func (*ViewBuilder) RenderPlaceholder ¶
func (v *ViewBuilder) RenderPlaceholder(newRunes []rune, offset int, style lipgloss.Style)
func (ViewBuilder) View ¶
func (v ViewBuilder) View() string
func (*ViewBuilder) ViewLen ¶
func (v *ViewBuilder) ViewLen() int
Directories ¶
Path | Synopsis |
---|---|
Package commandinput provides an implementation of the [input.Input] interface.
|
Package commandinput provides an implementation of the [input.Input] interface. |
Package simpleinput provides an implementation of the [input.Input] interface.
|
Package simpleinput provides an implementation of the [input.Input] interface. |
Click to show internal directories.
Click to hide internal directories.