Fancyline::Widget::HistorySearch
Inherits Fancyline::Widget / Reference / Object
Implements a simple history search feature. Activated by hitting "Ctrl-R", then accepts non-control input, Backspace and Up/Down.
Instance methods
editor
Sourceeditor?
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.
history
Sourcehistory?
Sourcemove_entry(ctx, offset)
Sourceneedle_regex
Sourcerestore_original(ctx)
Sourcesearch_prompt
Sourceupdate_results(ctx)
Source