Skip to content

Conversation

umlx5h
Copy link

@umlx5h umlx5h commented May 6, 2024

Hello.

I have added a new TruncatePrefix in addition to the Truncate and TruncateLeft method.
For example, when displaying a file pathname in the terminal, the string on the right side is more important for the information.
In such cases, one may want to truncate from the left side.

TruncateLeft might be a more appropriate name for this method, but since it already existed, I chose TruncatePrefix.

@mattn
Copy link
Owner

mattn commented Sep 25, 2025

Looks good to me. I'll look into it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants