Fill partial autosuggestion by word
(event: KeyPressEvent)
| 491 | |
| 492 | |
| 493 | def accept_word(event: KeyPressEvent): |
| 494 | """Fill partial autosuggestion by word""" |
| 495 | buffer = event.current_buffer |
| 496 | suggestion = buffer.suggestion |
| 497 | if suggestion: |
| 498 | t = re.split(r"(\S+\s+)", suggestion.text) |
| 499 | buffer.insert_text(next((x for x in t if x), "")) |
| 500 | else: |
| 501 | nc.forward_word(event) |
| 502 | |
| 503 | |
| 504 | def accept_character(event: KeyPressEvent): |
no outgoing calls
searching dependent graphs…