Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickanderson/d268acf7a46a4d87625595bd33e8ec1c to your computer and use it in GitHub Desktop.
Save nickanderson/d268acf7a46a4d87625595bd33e8ec1c to your computer and use it in GitHub Desktop.
Snippet of my org-roam-dailies-capture-templates

Here is an example of my daily capture templates. My work log (wll) is my most often used capture template. I have many other capture templates for things that recurr on a regular basis, like Meetings. The capture template for a specific meeting includes links to the common attendees individual note pages. These links surface that meeting if I visit an individuals note and run org-roam-buffer.

(setq org-roam-dailies-capture-templates
      `(

        ("w" "work")
        ("wl" "Log")
        ("wll" "Log" entry
         "* %?\n:properties:\n:prior_context: %a\n:end:\n"
         :if-new (file+head ,(expand-file-name "work/%<%Y-%m-%d>.org" org-roam-dailies-directory)
                            "#+title: Work log for %<%Y-%m-%d>")
         :clock-in t
         :clock-resume t
         )
        ("wm" "Meetings")
        ("wmc" "Customer")
        ("wmca" "A")
        ("wmcac" "ACME" plain "%?"
         :if-new (file+head ,(expand-file-name "northern.tech/meetings/customer/ACME/%<%Y-%m-%d>.org" org-roam-dailies-directory)
                            "#+property: CUSTOMER ACME
#+property: MAIL_TO My Team <my-team@northern.tech>
#+property: MAIL_SUBJECT Meeting notes: Customer Sync w/ ACME
#+property: MAIL_FROM Nick Anderson <nick.anderson@northern.tech>
#+property: broken-links t
#+property: header-args :eval never-export
#+title: Customer Sync with ACME %<%A, %B %d, %Y>
#+filetags: :meeting:customer:
#+options: exclude_tags :absent:noexport:
#+options: tags:nil
* Attendees
** Present
*** Nick Anderson
:PROPERTIES:
:PERSON: [[id:b21b95a9-0b61-4026-a15f-0e84fd0c2968][Nick Anderson]]
:END:
** Absent :absent:
*** Bob <bob@acme.com>
:PROPERTIES:
:PERSON: [[id:218725cb-a8cb-41d0-ad91-e6406a922caa][Bob Bobersone]]
:END:
*** Jane <jane@acme.com>
:PROPERTIES:
:PERSON:   [[id:34244eb1-6227-4f48-9284-965c17bb1044][Jane Enaj]]
:END:

* Info
- Current versions running:
- Next planned upgrade:
- Upcoming platform changes:

* Notes
* Next Steps / Follow-ups")
         :unnarrowed t
         :immediate-finish
         :jump-to-captured t
         :append t
         )
        )
      )
@nickanderson
Copy link
Author

BTW, if your using org-roam-capture instead of dailies capture with immediate finish you'll need this small patch waiting to be merged. org-roam/org-roam#2092

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment