Capturing daily tasks / notes

Hello everyone,

I am struggling to get org-roam to work in a workflow that is similar to Obsidian.

What i want to achieve is:

  1. When creating a new daily, the overall file should look like this:
#+title: %Y-%M-%D

[[Link to yesterday]] | [[Link to tomorrow]]

---

* 📝 Notes
** %?

* ⏱ Today's Tasks
** TODO

And if i want to capture a note or a todo, it would place the cursor in the respective section.

Is there a way to achieve this?

1 Like

Figured it out, for those wondering:

  (setq org-roam-dailies-capture-templates
        '(
          ("t" "todo" entry
           "** TODO %?"
           :target (file+head+olp "%<%Y-%m-%d>.org"
                                  "%<%Y-%m-%d>\n\n[[elisp:org-roam-dailies-find-yesterday][Yesterday]] | [[elisp:org-roam-dailies-find-tomorrow][Tomorrow]]\n\n-----\n\n"
                                  ("⏱ Today's tasks"))
           :empty-lines 1
           :unnarrowed t
          )
          (
           "n" "note" entry
           "** %?"
           :target (file+head+olp "%<%Y-%m-%d>.org"
                                  "%<%Y-%m-%d>\n\n[[elisp:org-roam-dailies-find-yesterday][Yesterday]] | [[elisp:org-roam-dailies-find-tomorrow][Tomorrow]]\n\n-----\n\n"
                                  ("📝 NOTES"))
           :empty-lines 1
           :unnarrowed t
           )
          )
        )

1 Like

Did you find org-roam-dailies-find-previous-note and org-roam-dailies-find-next-note? I believe that your current links will always find yesterday and tomorrow, even if you were looking back at a note from last week, the targets would be yesterday and tomorrow instead of the day prior and day after the note.