You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / terminal / shortcuts / auto_suggest / _swap_autosuggestion

function

IPython.terminal.shortcuts.auto_suggest:_swap_autosuggestion

source: /IPython/terminal/shortcuts/auto_suggest.py :609

Signature

def   _swap_autosuggestion ( buffer : Buffer provider : NavigableAutoSuggestFromHistory direction_method : Callable )

Summary

We skip most recent history entry (in either direction) if it equals the current autosuggestion because if user cycles when auto-suggestion is shown they most likely want something else than what was suggested (otherwise they would have accepted the suggestion).

Aliases

  • IPython.terminal.shortcuts.auto_suggest._swap_autosuggestion