Allow repetitions to start from last DONE

This commit is contained in:
Joscha 2021-11-25 01:23:50 +01:00
parent bfbf53784b
commit 11399468e7
4 changed files with 40 additions and 8 deletions

View file

@ -97,6 +97,14 @@ impl DeltaStep {
#[derive(Debug)]
pub struct Delta(pub Vec<DeltaStep>);
#[derive(Debug)]
pub struct Repeat {
/// Start at the date when the latest `DONE` was created instead of the
/// task's previous occurrence.
pub start_at_done: bool,
pub delta: Delta,
}
#[derive(Debug)]
pub struct DateSpec {
pub start: NaiveDate,
@ -105,7 +113,7 @@ pub struct DateSpec {
pub end: Option<NaiveDate>,
pub end_delta: Option<Delta>,
pub end_time: Option<Time>,
pub repeat: Option<Delta>,
pub repeat: Option<Repeat>,
}
#[derive(Debug)]