bundles / IPython 9.5.0 / IPython / terminal / shortcuts / auto_suggest / _swap_autosuggestion
function
IPython.terminal.shortcuts.auto_suggest:_swap_autosuggestion
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