mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(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:
@ -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))
|
||||
|
Reference in New Issue
Block a user