[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 2aed386b84 006/355: Add denote-org-capture (WORK
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 2aed386b84 006/355: Add denote-org-capture (WORK-IN-PROGRESS) |
Date: |
Sun, 26 Jun 2022 23:57:55 -0400 (EDT) |
branch: externals/denote
commit 2aed386b844ba026603ac4a346fb07b11da4f09e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add denote-org-capture (WORK-IN-PROGRESS)
---
denote.el | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/denote.el b/denote.el
index a4addc0a4b..0b86f509d5 100644
--- a/denote.el
+++ b/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'
- [elpa] externals/denote 3790125482 027/355: Remove to-do, (continued)
- [elpa] externals/denote 3790125482 027/355: Remove to-do, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 5744240289 036/355: Remove needless to-do, ELPA Syncer, 2022/06/26
- [elpa] externals/denote aaa691aa15 020/355: Refine front-matter, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 153827f6c8 021/355: Add denote-link, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 21104787f7 024/355: Put link functionality in denote-link.el, ELPA Syncer, 2022/06/26
- [elpa] externals/denote b951a62245 025/355: Put capture code in denote-org-capture.el, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 9f4a99243c 035/355: Change how org-capture hook is added, ELPA Syncer, 2022/06/26
- [elpa] externals/denote fa6a3315dc 047/355: Add correct group for org capture specifiers, ELPA Syncer, 2022/06/26
- [elpa] externals/denote f33f8a7040 053/355: Rewrite README as a manual, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 251b35d8f5 003/355: Add GPL, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 2aed386b84 006/355: Add denote-org-capture (WORK-IN-PROGRESS),
ELPA Syncer <=
- [elpa] externals/denote 0e2cc10fe6 009/355: Improve integration with org-capture-templates, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 1079beb858 017/355: Add todo about file deletion post org-capture, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 27642bee14 026/355: Clarify 'denote' doc string, ELPA Syncer, 2022/06/26
- [elpa] externals/denote ec3847607b 028/355: Remove to-do about file name format, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 7fe66f43d4 030/355: Remove needless outline and empty line, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 550428cabf 037/355: Add sample org-capture-templates to Commentary, ELPA Syncer, 2022/06/26
- [elpa] externals/denote efd5135835 039/355: Improve linking functionality, ELPA Syncer, 2022/06/26
- [elpa] externals/denote a34ca52fbf 040/355: Fix regression in M-x denote, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 3b62f8e167 043/355: Implement denote-link-clear-stale-backlinks, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d57ff29c3b 045/355: Add denote--file-regexp, ELPA Syncer, 2022/06/26