Skip to content

Support style transform plugins #143

@hbisneto

Description

@hbisneto

Problem: No hook to apply post-processing (e.g., box drawing, emoji prefixes) without wrapping every call.

Why it matters: Enables reusable UI components (e.g., “info” boxes) without repetitive code.

Proposed solution: Add register_transform(name, func) where func(text, styles) returns modified text. In Console.__call__, apply registered transforms in order before emitting RESET_ALL.

Notes: Keep transforms stateless; provide unregister_transform. Use cases: brackets, icons, conditional dimming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Console ModuleRelated to the "Console" module inside FileSystemPro

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions