Compare commits

...

2 Commits

Author SHA1 Message Date
fb60b22c5e
Reference blog entry showing how to programmatically add Org notes
The current implementation of `db/org-update-headline-log-note` seems to be
fine, but if it turns out to be broken, we can try the approach of Sacha Chua.
2023-02-14 16:30:10 +01:00
6c17b944e2
Use full path completion for org-goto
This allows jumping to headlines in the current buffer much like using
imenu-based searches, but using native Org mode.
2023-02-14 16:17:48 +01:00
2 changed files with 5 additions and 1 deletions

View File

@ -873,6 +873,7 @@
org-attach-store-link-p 'attached
org-attach-auto-tag nil
org-bookmark-names-plist nil
org-goto-interface 'outline-path-completion
org-blank-before-new-entry '((heading . t)
(plain-list-item . t))

View File

@ -1058,7 +1058,10 @@ cache if that's in use."
;; Update headline
(org-edit-headline new-headline)
;; Store note manually (I tried using `org-add-log-note', but did not succeed …)
;; Store note manually (I tried using `org-add-log-note', but did not
;; succeed …); maybe use the logging function from
;; https://sachachua.com/blog/2022/11/logging-sent-messages-to-org-mode-with-message-sent-hook/
;; instead?
(goto-char (org-log-beginning 'create))
(indent-according-to-mode)
(insert "- Note taken on ")