Created
August 16, 2021 10:24
-
-
Save goshatch/b1647ba416568bf483b438ddf0971a6a to your computer and use it in GitHub Desktop.
Create a weekly review note from hotkey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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