mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Recurring Tasks - new "weekdays" frequency
- Added support for "weekdays" as a recurrence frequency, which skips Saturday and Sunday, but is otherwise a daily recurrence. Thanks to Chris Pride.
This commit is contained in:
parent
3c196230dd
commit
3d3d788961
8 changed files with 249 additions and 164 deletions
|
@ -250,6 +250,7 @@ int convertDuration (const std::string& input)
|
|||
std::vector <std::string> supported;
|
||||
supported.push_back ("daily");
|
||||
supported.push_back ("day");
|
||||
supported.push_back ("weekdays");
|
||||
supported.push_back ("weekly");
|
||||
supported.push_back ("sennight");
|
||||
supported.push_back ("biweekly");
|
||||
|
@ -269,6 +270,7 @@ int convertDuration (const std::string& input)
|
|||
std::string found = matches[0];
|
||||
|
||||
if (found == "daily" || found == "day") return 1;
|
||||
else if (found == "weekdays") return 1;
|
||||
else if (found == "weekly" || found == "sennight") return 7;
|
||||
else if (found == "biweekly" || found == "fortnight") return 14;
|
||||
else if (found == "monthly") return 30;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue