multi-progress
multi-progress copied to clipboard
Allign columns
Allign the different fields of each progressbar to show it nicer. So far seems it would be just enough with the download name, so I would pad them with spaces up to the lenght of the biggest one.
Sounds simple enough. Good idea.
Thank you :-) Problem with that is that maybe we should add some placeholders so multi-progress
can be able to manage them... Maybe could be done if being given a string template and a literals instead of a string and processing it?
Seems a bit hackyist, but since ProgressBar
objects provides direct access to the format string, we could mimic it, and use a custom :name
field (for example, we can use any other name or also complex string template placeholders) and update the progress bar format string with it already replaced :-)