Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComplResult ¶
type ComplResult int
const ( Matched ComplResult = iota NotMatched Aborted Errored )
type Completion ¶
type Completion struct { CompletionSource `yaml:",inline"` Pattern string `yaml:"pattern"` Replacement string `yaml:"replacement"` ItemSeparator string `default:" " yaml:"itemSeparator"` Layout string `yaml:"layout"` }
func NewCompletion ¶
func NewCompletion(pattern string) *Completion
func (*Completion) MatchAndFind ¶
func (c *Completion) MatchAndFind(line string, options CompletionOptions) ([]string, ComplResult)
type CompletionOptions ¶
type CompletionOptions struct {
ReturnAll bool
}
type CompletionResult ¶
type CompletionResult struct {
Items []string
}
type CompletionSource ¶
type MatchResult ¶
type MatchResult struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.