euporie.core.completion.CompleteEvent
- class euporie.core.completion.CompleteEvent(text_inserted: bool = False, completion_requested: bool = False)
Event that called the completer.
- Parameters:
text_inserted – When True, it means that completions are requested because of a text insert. (Buffer.complete_while_typing.)
completion_requested – When True, it means that the user explicitly pressed the Tab key in order to view the completions.
These two flags can be used for instance to implement a completer that shows some completions when
Tab
has been pressed, but not automatically when the user presses a space. (Because of complete_while_typing.)