Fill partial autosuggestion by character
(event: KeyPressEvent)
| 502 | |
| 503 | |
| 504 | def 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 | |
| 512 | def accept_and_keep_cursor(event: KeyPressEvent): |
no outgoing calls
searching dependent graphs…