The proposed suffix to append to the existing input to complete the last token in the input.
The string to present to the user to represent the full token being suggested.
True if this Completion is suggesting the empty string.
Appends the completions in o
with the completions in this Completion.
Represents a completion. The abstract members
display
andappend
are best explained with an example.Assuming space-delimited tokens, processing this: am is are w<TAB> could produce these Completions: Completion { display = "was"; append = "as" } Completion { display = "were"; append = "ere" } to suggest the tokens "was" and "were".
In this way, two pieces of information are preserved: 1) what needs to be appended to the current input if a completion is selected 2) the full token being completed, which is useful for presenting a user with choices to select