Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TruncatePrefix #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

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.

None yet

1 participant