Skip to content

Add truncation from left, right and center #1

@micjan

Description

@micjan

Currently the right part of the string is removed.
It should be possible to remove the left or the center part from it.
For the center part, it may even be possible to pass a percentage or something like it to define how the amount of uncut chars is distributed between the left and right part of the string.

Maybe something like:
option.cutPosition
1: the right is cut off.
0.5: the center is cut and the uncut chars is distributed evenly.
0.3: the center is cut ant 30% of uncut chars is on the left while the rest are on the right.
0: the left is cut off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions