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

Function previous_history_or_previous_completion

IPython/terminal/shortcuts.py:158–164  ·  view source on GitHub ↗

Control-P in vi edit mode on readline is history next, unlike default prompt toolkit. If completer is open this still select previous completion.

(event)

Source from the content-addressed store, hash-verified

156
157
158def previous_history_or_previous_completion(event):
159 """
160 Control-P in vi edit mode on readline is history next, unlike default prompt toolkit.
161
162 If completer is open this still select previous completion.
163 """
164 event.current_buffer.auto_up()
165
166
167def next_history_or_next_completion(event):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected