You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There are different possible preferences regarding the formatting of a duration, which are currently not supported:
Seconds with a decimal points
Raw seconds
Only the biggest one or two duration components
....
Describe the solution you'd like
Other modules solve this by having variables that can be used in a format string. The cmd_duration module only offers a single pre-formatted variable though. I propose to introduce variables for the different possible components like:
Raw days / hours / minutes / seconds (with thousand separators)
"Modulo" days / hours / minutes / seconds including 0s
"Modulo" days / hours / minutes / seconds with 0s being empty strings
This would allow a lot of reasonable configs for different preferences.
Describe alternatives you've considered
I tried adding more single config options to support those cases, but it is hard to do that without being convoluted. Config could still be useful for setting things like thousand separators for the variables mentioned above.
I would be happy to implement this.
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
There are different possible preferences regarding the formatting of a duration, which are currently not supported:
Describe the solution you'd like
Other modules solve this by having variables that can be used in a format string. The
cmd_duration
module only offers a single pre-formatted variable though. I propose to introduce variables for the different possible components like:0
s0
s being empty stringsThis would allow a lot of reasonable configs for different preferences.
Describe alternatives you've considered
I tried adding more single config options to support those cases, but it is hard to do that without being convoluted. Config could still be useful for setting things like thousand separators for the variables mentioned above.
I would be happy to implement this.
The text was updated successfully, but these errors were encountered: