(fix)promote: promote all metadata to file level (#2246)

Without specifying `t`, it is only pushing the PROPERTIES drawer up  to
the file level, missing any other "planning information, clocking lines and
any kind of drawer." We want to promote all of this to the file level.
This commit is contained in:
Jason May
2022-08-03 21:37:36 -07:00
committed by GitHub
parent e435581215
commit 7f453f3fff

View File

@ -864,7 +864,7 @@ node."
(let ((title (nth 4 (org-heading-components)))
(tags (org-get-tags)))
(kill-whole-line)
(org-roam-end-of-meta-data)
(org-roam-end-of-meta-data t)
(insert "#+title: " title "\n")
(when tags (org-roam-tag-add tags))
(org-map-region #'org-promote (point-min) (point-max))