Get previous autosuggestion from history.
(event: KeyPressEvent)
| 644 | |
| 645 | |
| 646 | def 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 | ) |
searching dependent graphs…