Documentation ¶
Index ¶
Constants ¶
View Source
const ( SuggestionWidth = 40 DescriptionWidth = 30 BorderOffset = 2 MaxSuggestions = 5 )
Variables ¶
View Source
var ArgumentDescriptionBorder = lipgloss.Border{
Top: "",
Bottom: "─",
Left: "│",
Right: "│",
TopLeft: "",
TopRight: "",
BottomLeft: "└",
BottomRight: "┘",
}
View Source
var SuggestionWithDescriptionBorder = lipgloss.Border{
Top: "─",
Bottom: "─",
Left: "│",
Right: "│",
TopLeft: "┌",
TopRight: "┐",
BottomLeft: "├",
BottomRight: "┤",
}
Functions ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) ActiveSuggestion ¶
func (Model) HasActiveSuggestion ¶
func (*Model) ResetCursor ¶
func (m *Model) ResetCursor()
type SuggestionMessage ¶
type SuggestionMessage struct { Id uuid.UUID Suggestions []autocomplete.Suggestion ArgumentDescription string RunesToRemove int }
Click to show internal directories.
Click to hide internal directories.