Class SingleWordSuggestionGenerator | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
public class SingleWordSuggestionGenerator : ISuggestionGenerator
Inheritance
SingleWordSuggestionGenerator
Implements
Inherited Members
Properties
The full set of all strings that can be suggested.
Methods
GenerateSuggestions(AutocompleteContext)
Generates autocomplete Suggestion based on a given context
IdxToWord(List, int, out int, int)
Given a line
of characters, returns the word which ends at idx
or null. Also returns null if the idx
is positioned in the middle of a word.
Use this method to determine whether autocomplete should be shown when the cursor is at a given point in a line and to get the word from which suggestions should be generated. Use the columnOffset
to indicate if search the word at left (negative), at right (positive) or at the current column (zero) which is the default.
Return true if the given symbol should be considered part of a word and can be contained in matches. Base behavior is to use IsLetterOrDigit(char)