~bsprague/everdo-export

ad2ad6606d000be60b9068c3f88e04fb8cd5f479 — Brandon Sprague 8 months ago 249461a main
Minor tweaks and todos
3 files changed, 8 insertions(+), 3 deletions(-)

M README.md
M templater/templater.go
M tmpl/item.md
M README.md => README.md +6 -1
@@ 45,7 45,7 @@ The page it goes into corresponds to the List it was on in Everdo. Items may hav
```
waiting-on:: <comes from the `contact_id` in Everdo>
focus:: true // If the item was focused
inbox:: false // The designator that moves things from Inbox -> Next
triaged:: true // The designator that moves things from Inbox -> Next
area:: <the area, if any>
```



@@ 56,3 56,8 @@ Additionally, all action blocks start with `collapsed:: true`, just to remove so
Notebooks look like projects for the most part, but they're also just mostly normal Logseq pages. They don't have `project-type` or `project-status` or `waiting-on` or `type`.

Notes are like action items, but without a TODO or other task label, and without other not-relevant properties like `waiting-on`, `inbox`, etc.

## TODO

- [ ] Handle 'scheduled' projects
  - We currently set the `project-status`, but don't actually record when it's scheduled for.

M templater/templater.go => templater/templater.go +1 -1
@@ 837,7 837,7 @@ func Label(itd ItemTemplateData) string {

	switch itd.Status {
	case "inbox", "next":
		// We differentiate between these with inbox:: false on 'next'
		// We differentiate between these with triaged:: true on 'next'
		return "TODO"
	case "someday":
		return "LATER"

M tmpl/item.md => tmpl/item.md +1 -1
@@ 4,7 4,7 @@
  {{ end -}}
  {{ if .Focus }}focus:: true
  {{ end -}}
  {{ if (and (not .HasParent) (next .)) }}inbox:: false
  {{ if (and (not .HasParent) (next .)) }}triaged:: true
  {{ end -}}
  {{ if .Area }}area:: [[{{ .Area }}]]
  {{ end -}}