euporie.core.completion.Completion

class euporie.core.completion.Completion(text: str, start_position: int = 0, display: AnyFormattedText | None = None, display_meta: AnyFormattedText | None = None, style: str = '', selected_style: str = '')
Parameters:
  • text – The new string that will be inserted into the document.

  • start_position – Position relative to the cursor_position where the new text will start. The text will be inserted between the start_position and the original cursor position.

  • display – (optional string or formatted text) If the completion has to be displayed differently in the completion menu.

  • display_meta – (Optional string or formatted text) Meta information about the completion, e.g. the path or source where it’s coming from. This can also be a callable that returns a string.

  • style – Style string.

  • selected_style – Style string, used for a selected completion. This can override the style parameter.