bundles / IPython latest / IPython / terminal / shortcuts / auto_suggest / _swap_autosuggestion
function
IPython.terminal.shortcuts.auto_suggest:_swap_autosuggestion
source: /dev/ipython/IPython/terminal/shortcuts/auto_suggest.py:613
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