euporie.core.ft.utils.explode_text_fragments

euporie.core.ft.utils.explode_text_fragments(fragments: Iterable[prompt_toolkit.layout.utils._T]) prompt_toolkit.layout.utils._ExplodedList[prompt_toolkit.layout.utils._T]

Turn a list of (style_str, text) tuples into another list where each string is exactly one character.

It should be fine to call this function several times. Calling this on a list that is already exploded, is a null operation.

Parameters

fragments – List of (style, text) tuples.