Documentation
¶
Overview ¶
Package spellmodal provides an interactive spell check modal TUI component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPersonalMsg ¶
type AddPersonalMsg struct{ Word string }
AddPersonalMsg is sent when the user adds a word to their personal dictionary.
type CorrectionMsg ¶
CorrectionMsg is sent when the user picks a suggestion.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the spell check modal component.
func New ¶
func New(filePath string, errors []SpellError, startIdx int) Model
New creates a new spell modal for the given errors, starting at startIdx.
type OpenMsg ¶
type OpenMsg struct {
FilePath string
Errors []SpellError
// StartIdx is the index into Errors of the first error to show (at or after cursor).
StartIdx int
}
OpenMsg is sent to open the spell check modal with a list of errors.
Click to show internal directories.
Click to hide internal directories.