quebin31 / muso

muso: music sorter
GNU General Public License v3.0
90 stars 5 forks source link

Allow leading zeros for track and disc #5

Closed ghost closed 4 years ago

ghost commented 4 years ago

Is your feature request related to a problem? Please describe. If you use the ~{discnumber}~{disc} or {track} placeholder, the filename only contains the numbers without a leading zero.

Describe the solution you'd like It would be amazing to have the ability to set an option allow using leading zeros.

Thank you very much for this cool piece of software!

quebin31 commented 4 years ago

I will add this to format string, something like Rust fmt. For example, to add leading zeros until the number gets 2 digit length you would do {disc:2} - {track:2}. This will take some time since this will require a total redesign of that specific part.

quebin31 commented 4 years ago

@bloomvdomino check out the new version.

ghost commented 4 years ago

@quebin31 Works like a charm!