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

Function accept_character

IPython/terminal/shortcuts/auto_suggest.py:504–509  ·  view source on GitHub ↗

Fill partial autosuggestion by character

(event: KeyPressEvent)

Source from the content-addressed store, hash-verified

502
503
504def accept_character(event: KeyPressEvent):
505 """Fill partial autosuggestion by character"""
506 b = event.current_buffer
507 suggestion = b.suggestion
508 if suggestion and suggestion.text:
509 b.insert_text(suggestion.text[0])
510
511
512def accept_and_keep_cursor(event: KeyPressEvent):

Callers 1

test_accept_characterFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_accept_characterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…