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

Possible to truncate beginning of wide_msg? #400

Closed
1Dragoon opened this issue Mar 16, 2022 · 2 comments · Fixed by #402
Closed

Possible to truncate beginning of wide_msg? #400

1Dragoon opened this issue Mar 16, 2022 · 2 comments · Fixed by #402

Comments

@1Dragoon
Copy link

I'm wanting to have wide_msg truncate the beginning of the string rather than the end of the string.

So basically if we use this sentence as an example, truncating to 40 characters:

an example, truncating to 40 characters:

As opposed to the existing behavior:

So basically if we use this sentence as 

I tried to find a way to determine what the current width of wide_msg is so I could manually do this, but I didn't see any obvious public exposure of it.

@djc
Copy link
Collaborator

djc commented Mar 16, 2022

Yeah, this currently can't be done. We could maybe do this by changing truncation to take the alignment flag into account.

@djc
Copy link
Collaborator

djc commented Mar 17, 2022

#402 should make this possible.

@djc djc closed this as completed in #402 Mar 17, 2022
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 a pull request may close this issue.

2 participants