Fancyline::Widget::Completion
Inherits Fancyline::Widget / Reference / Object
Implements the user-interaction for TAB-autocompletion. Completion
suggestions are created using the Fancyline#autocomplete middleware.
Constants
MAX_COMPLETIONS = 20
Hard limit of completions. More are discarded.
Instance methods
apply_suggestion(ctx, completion)
Sourcecompletion_info_string(ctx)
Sourcefetch_suggestions(ctx, range, word)
Sourcehandle(ctx : Context, char : Char) : Bool
Called on user-input. Return true if you handeled the input, return
false to handle it as normal input by the Context.
The default implementation calls Context#stop_widget to remove itself,
and returns false.
handle_control(ctx, char)
Sourcehandle_quick_select(ctx, char)
Sourcemove_entry(ctx, offset)
Source