Update org-capture templates
This commit is contained in:
parent
a21f0d96ac
commit
d0cf1a8496
1 changed files with 4 additions and 3 deletions
|
@ -212,16 +212,17 @@
|
|||
(format ":TASK_ID: [[id:%s][%s]]" (org-id-get) (org-get-heading t t))))
|
||||
(let ((manual-id (read-string "Enter Task ID (leave empty if not applicable): ")))
|
||||
(unless (string-empty-p manual-id)
|
||||
(format ":TASK_ID: [[id:%s][Task]]" manual-id)))))
|
||||
(format ":TASK_ID: [[id:%s][Task]]\n" manual-id)))))
|
||||
|
||||
;; Note Capture Template
|
||||
;; Purpose: To capture general notes. These notes can optionally be linked to a currently clocked-in task.
|
||||
;; Fields: Heading, optional task link, initial content, and a timestamp.
|
||||
(add-to-list 'org-capture-templates
|
||||
`("n" "Note" entry (file+headline "notes.org" "Notes")
|
||||
`("n" "Note" entry (file "notes.org")
|
||||
,(concat "* %? :NOTE:\n"
|
||||
":PROPERTIES:\n"
|
||||
"%(mk/link-to-current-task)\n"
|
||||
":ID: %(org-id-new)\n"
|
||||
"%(mk/link-to-current-task)"
|
||||
":END:\n"
|
||||
"Entered on: %U\n")))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue