package
1.0.28
Repository: https://github.com/goki/pi.git
Documentation: pkg.go.dev

# Functions

AddSyms adds given symbols as matches in the given match data Scope is e.g., type name (label only).
AddSymsPrefix adds subset of symbols that match seed prefix to given match data.
AddTypeNames adds names from given type as matches in the given match data Scope is e.g., type name (label only), and seed is prefix filter for names.
EditWord replaces the completion seed and any text up to the next whitespace with completion.
ExtendSeed tries to extend the current seed checking possible completions for a longer common seed e.g.
MatchSeedCompletion returns a list of matching completion structs given a list of possibilities and a seed.
MatchSeed returns a list of matches given a list of string possibilities and a seed.
SeedWhiteSpace returns the text after the last whitespace.

# Structs

Completion holds one potential completion.
Edit is returned from completion edit function to incorporate the selected completion.
Lookup is used for returning lookup results.
Matches is used for passing completions around.

# Type aliases

Completions is a full list (slice) of completion options.
EditFunc is passed the current text and the selected completion for text editing.
LookupFunc is the function called to get the lookup results for given input test and position.
MatchFunc is the function called to get the list of possible completions and also determines the correct seed based on the text passed as a parameter of CompletionFunc.