Skip to content

Instantly share code, notes, and snippets.

@goshatch
Created August 16, 2021 10:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goshatch/b1647ba416568bf483b438ddf0971a6a to your computer and use it in GitHub Desktop.
Save goshatch/b1647ba416568bf483b438ddf0971a6a to your computer and use it in GitHub Desktop.
Create a weekly review note from hotkey
(defvar gt/weekly-review-capture-template
`(("d" "default" entry
"* %?"
:if-new (file+head
"%<%Y-%m-%d>-weekly-review.org"
"%[~/org/roam/templates/weekly-review-template.org]"))))
(defun gt/weekly-review-capture (&optional no-visit)
"Create a weekly review note from the appropriate template"
(interactive)
(org-roam-capture- :goto (unless no-visit '(4))
:node (org-roam-node-create)
:templates gt/weekly-review-capture-template))
(use-package! org-roam
:bind
("C-c j w" . gt/weekly-review-capture))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment