-
Notifications
You must be signed in to change notification settings - Fork 84
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
eta_formatted and duration_formatted number padding #60
Comments
not as default format - you can use a custom formatter so solve the issue. additionally i can may add custom filter functions for all placeholder |
Hi Andi, thanks for your response! I'm able to pad the percentage by using a simple function in the format
However, ETA_formatted and duration_formated come in as full string (like 24m5s or 5m45s, etc). And without a complex regex it would be difficult to format them with number pads. An option when invoking a new cli-bar to optionally set a number of digits to pad numbers for formatted outputs would be amazing. If you accept pull requests on this great library I would be happy to try to help when I have some time. |
It is quite easy to implement but i'm looking for a more generic solution (especially it should not break the existing behaviour) |
i've just added two options to the master branch:
additionally, you can use custom element format callbacks to override the default rendering:
|
Amazing Andi! I'll try it out. I'm using your library for a CLI batch video converter, and it's working great!!!! |
Would be great for the eta_formatted and duration_formatted values to be padded. Without padding it causes a lot of jumping of the bars when displaying single digit numbers.
The text was updated successfully, but these errors were encountered: