bundles / IPython latest / IPython / terminal / shortcuts / auto_suggest / NavigableAutoSuggestFromHistory / _find_match
function
IPython.terminal.shortcuts.auto_suggest:NavigableAutoSuggestFromHistory._find_match
source: /dev/ipython/IPython/terminal/shortcuts/auto_suggest.py:224
Signature
def _find_match(self, text: str, skip_lines: float, history: History, previous: bool) → Generator[tuple[str, float], None, None]Summary
text
Text content to find a match for, the user cursor is most of the time at the end of this text.
skip_lines
number of items to skip in the search, this is used to indicate how far in the list the user has navigated by pressing up or down. The float type is used as the base value is +inf
history
prompt_toolkit History instance to fetch previous entries from.
previous
Direction of the search, whether we are looking previous match (True), or next match (False).
Yields
: Tuple with:: str:current suggestion.
: float:will actually yield only ints, which is passed back via skip_lines, which may be a +inf (float)
Aliases
IPython.terminal.interactiveshell.NavigableAutoSuggestFromHistory._find_match