Skip to content

Commit

Permalink
add notes when following up
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 31, 2022
1 parent 9779156 commit 5c82718
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Finish and Follow Up.omnijs
Expand Up @@ -43,9 +43,11 @@

let nextSiblingForm = new Form();
nextSiblingForm.addField(new Form.Field.String("name", "What's Next?"));
nextSiblingForm.addField(new Form.Field.String("note", "Notes"));
await nextSiblingForm.show(`What's the next thing that needs to happen after "${currentSibling.name}"?`, "Save");

currentSibling = new Task(nextSiblingForm.values.name, currentSibling.after);
currentSibling.note = nextSiblingForm.values.note;
currentSibling.addTags(originalTask.tags);
}

Expand All @@ -55,9 +57,11 @@
/////////////////////////////
let nextThingForm = new Form();
nextThingForm.addField(new Form.Field.String("name", "What's Next?"));
nextThingForm.addField(new Form.Field.String("note", "Notes"));
await nextThingForm.show(`What's the next thing that needs to happen to finish "${originalTask.name}"?`, "Save");

let currentSibling = new Task(nextThingForm.values.name, originalTask.beginning);
currentSibling.note = nextThingForm.values.note;
currentSibling.addTags(originalTask.tags);

while (true) {
Expand All @@ -72,9 +76,11 @@

let nextSiblingForm = new Form();
nextSiblingForm.addField(new Form.Field.String("name", "What's Next?"));
nextSiblingForm.addField(new Form.Field.String("note", "Notes"));
await nextSiblingForm.show(`What's the next thing that needs to happen after "${currentSibling.name}"?`, "Save");

currentSibling = new Task(nextSiblingForm.values.name, currentSibling.after);
currentSibling.note = nextSiblingForm.values.note;
currentSibling.addTags(originalTask.tags);
}

Expand Down

0 comments on commit 5c82718

Please sign in to comment.