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

Adding human-readable months as date expressions #106

Open
83noit opened this issue Jan 1, 2025 · 4 comments
Open

Adding human-readable months as date expressions #106

83noit opened this issue Jan 1, 2025 · 4 comments

Comments

@83noit
Copy link

83noit commented Jan 1, 2025

Being able to use:

  • 3-character English month name abbreviation, eg ‘jan’, ‘feb’
  • Complete English month name, eg ‘january’, ‘february’

Like the days of the week, it would default to the nearest occurrence in the future (e.g. feb -> 2025-02-01).

@VladimirMarkelov
Copy link
Owner

Thank you for the suggestion!

Do you want to be able to use only a month name alone? Or you also suggest setting more accurate dates like feb-04/2027-feb/2025-feb-17? For the case "only a month name alone" it should be easy and simple fix.

@83noit
Copy link
Author

83noit commented Jan 10, 2025

Thanks for looking into it! I'm loving the last few releases of TTDL!

The month alone (--set-due oct; "(Z) Foo/Bar t:nov") , as a shortcut, like for the days of the week.

The iso format (yyyy-mm-dd or mm-dd) is more convenient and shorter to type when date or year are involved.

For context, it is inspired from Taskwarrior named dates. I personally never used more than the days of the week and the month names, but others might have other requirements.

@83noit 83noit changed the title Adding human-readable months to the date expressions Adding human-readable months as date expression Jan 10, 2025
@83noit 83noit changed the title Adding human-readable months as date expression Adding human-readable months as date expressions Jan 10, 2025
@VladimirMarkelov
Copy link
Owner

Available in version 4.8.0:

ttdl.exe add "due:apr" --dry-run
To be added:
 # D P Created Finished Due        Subject
-------------------------------------------
 1                      2025-04-01 due:2025-04-01

ttdl.exe add "due:apr+1w" --dry-run
To be added:
 # D P Created Finished Due        Subject
-------------------------------------------
 1                      2025-04-08 due:2025-04-08

@83noit
Copy link
Author

83noit commented Jan 18, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants