MCPcopy Index your code
hub / github.com/ipython/ipython / swap_autosuggestion_up

Function swap_autosuggestion_up

IPython/terminal/shortcuts/auto_suggest.py:633–643  ·  view source on GitHub ↗

Get next autosuggestion from history.

(event: KeyPressEvent)

Source from the content-addressed store, hash-verified

631
632
633def swap_autosuggestion_up(event: KeyPressEvent):
634 """Get next autosuggestion from history."""
635 shell = get_ipython()
636 provider = shell.auto_suggest
637
638 if not isinstance(provider, NavigableAutoSuggestFromHistory):
639 return
640
641 return _swap_autosuggestion(
642 buffer=event.current_buffer, provider=provider, direction_method=provider.up
643 )
644
645
646def swap_autosuggestion_down(event: KeyPressEvent):

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…