mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Add denote-org-capture (WORK-IN-PROGRESS)
This commit is contained in:
parent
3c06d7d119
commit
2aed386b84
18
denote.el
18
denote.el
|
|
@ -284,8 +284,22 @@ alphabetically."
|
|||
(denote--prepare-note title keywords)
|
||||
(denote--keywords-add-to-history keywords))
|
||||
|
||||
;; TODO 2022-06-04: Integrate with org-capture. Is it possible without
|
||||
;; a lot of extra code? How?
|
||||
(defun denote-org-capture ()
|
||||
"Like `denote', but for integration with `org-capture'.
|
||||
WORK-IN-PROGRESS."
|
||||
(interactive)
|
||||
(let ((title (denote--title-prompt))
|
||||
(keywords (denote--keywords-prompt)))
|
||||
(denote--prepare-note title keywords)
|
||||
(denote--keywords-add-to-history keywords)))
|
||||
|
||||
;; Sample of an `org-capture-templates' entry:
|
||||
;;
|
||||
;; ("n" "Note" plain
|
||||
;; (file ,(denote--directory))
|
||||
;; (function denote-org-capture)
|
||||
;; :no-save t
|
||||
;; :immediate-finish t)
|
||||
|
||||
;; TODO 2022-06-04: `denote-rename-file'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue