Get next autosuggestion from history.
(event: KeyPressEvent)
| 631 | |
| 632 | |
| 633 | def 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 | |
| 646 | def swap_autosuggestion_down(event: KeyPressEvent): |
searching dependent graphs…