euporie.core.processors
Buffer processors.
Functions
|
Cast a value to a type. |
|
Turn a list of (style_str, text) tuples into another list where each string is exactly one character. |
|
Return width of a string. |
Classes
|
Append the auto suggestion to the input. |
|
Append the auto suggestion to the current line of the input. |
|
Show a mouse cursor. |
|
Highlight diagnostics. |
Manipulate the fragments for a given line in a |
|
|
Make trailing whitespace visible. |
|
Transformation result, as returned by |
- class euporie.core.processors.AppendLineAutoSuggestion(style: str = 'class:auto-suggestion')
Bases:
AppendAutoSuggestion
Append the auto suggestion to the current line of the input.
- apply_transformation(ti: TransformationInput) Transformation
Inert fragments at the end of the current line.
- class euporie.core.processors.CursorProcessor(get_cursor_position: Callable[[], Point], char: str = '🮰', style: str = 'class:mouse')
Bases:
Processor
Show a mouse cursor.
- apply_transformation(ti: TransformationInput) Transformation
Replace character at the cursor position.
- class euporie.core.processors.DiagnosticProcessor(report: Report | Callable[[], Report], style: str = 'underline')
Bases:
Processor
Highlight diagnostics.
- apply_transformation(ti: TransformationInput) Transformation
Underline the text ranges relating to diagnostics in the report.
- class euporie.core.processors.ShowTrailingWhiteSpaceProcessor(char: str = '·', style: str = 'class:trailing-whitespace')
Bases:
Processor
Make trailing whitespace visible.
- apply_transformation(ti: TransformationInput) Transformation
Walk backwards through all the fragments and replace whitespace.