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

nicer display formats for duration UDAs #3738

Open
Zocker1999NET opened this issue Dec 28, 2024 · 1 comment
Open

nicer display formats for duration UDAs #3738

Zocker1999NET opened this issue Dec 28, 2024 · 1 comment
Labels
topic:time Issues relating to time

Comments

@Zocker1999NET
Copy link

Zocker1999NET commented Dec 28, 2024

When using an UDA with a duration (e.g. for the estimated time for completion), it seems that it can only be displayed in the ISO duration format. For example:

# .taskrc
uda.eta.type=duration
uda.eta.label=ETA
# (also add this to a report of your choice)

Then Taskwarrior only lists default and indicator as supported formats via task colums eta. I can set an ETA with e.g. eta:5min, but by default it gets displayed as PT15M. For dates, or rather for displaying the duration between now and a given date, Timewarrior supports other formats as well. These would highly increase the usability of duration UDAs.

So I think following format specifications could be added to durations (using the example from above):

  • age for 15min, useful when exact display is not required
  • countdown for 00:15:00, useful for second-precision output with hours as largest divisor
  • iso for the current default PT15M
@astr0gator
Copy link

Amazing idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:time Issues relating to time
Projects
Status: Backlog
Development

No branches or pull requests

3 participants