euporie.core.widgets.formatted_text_area
Contain dpdated ANSI parsing and Formatted Text processing.
Functions
|
Concatenate all the text parts again. |
|
Take a single list of (style_str, text) tuples and yield one such list for each line. |
|
Accept both booleans and Filters as input and turn it into a Filter. |
|
Convert the given value (which can be formatted text) into a list of text fragments. |
Classes
|
Wrapper around other |
|
Processor class that dynamically returns any Processor. |
|
Apply formatted text to a TextArea. |
|
Apply formatted text to a TextArea. |
|
Margin that displays the line numbers of a |
Manipulate the fragments for a given line in a |
|
|
A simple input field. |
|
Transformation result, as returned by |
- class euporie.core.widgets.formatted_text_area.FormattedTextArea(formatted_text: AnyFormattedText, *args: Any, line_numbers: FilterOrBool = False, **kwargs: Any)
Bases:
TextArea
Apply formatted text to a TextArea.
- property accept_handler: Callable[[Buffer], bool] | None
The accept handler. Called when the user accepts the input.
- property formatted_text: StyleAndTextTuples
The formatted text.
- get_processor() FormattedTextProcessor
Generate a processor for the formatted text.
- class euporie.core.widgets.formatted_text_area.FormattedTextProcessor(formatted_text: StyleAndTextTuples)
Bases:
Processor
Apply formatted text to a TextArea.
- apply_transformation(transformation_input: TransformationInput) Transformation
Apply text formatting to a line in a buffer.