MCPcopy Create free account
hub / github.com/ipython/ipython / swap_autosuggestion_down

Function swap_autosuggestion_down

IPython/terminal/shortcuts/auto_suggest.py:646–658  ·  view source on GitHub ↗

Get previous autosuggestion from history.

(event: KeyPressEvent)

Source from the content-addressed store, hash-verified

644
645
646def swap_autosuggestion_down(event: KeyPressEvent):
647 """Get previous autosuggestion from history."""
648 shell = get_ipython()
649 provider = shell.auto_suggest
650
651 if not isinstance(provider, NavigableAutoSuggestFromHistory):
652 return
653
654 return _swap_autosuggestion(
655 buffer=event.current_buffer,
656 provider=provider,
657 direction_method=provider.down,
658 )

Callers 1

test_other_providersFunction · 0.90

Calls 2

get_ipythonFunction · 0.90
_swap_autosuggestionFunction · 0.85

Tested by 1

test_other_providersFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…