(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.
master
Jason May 4 years ago committed by GitHub
parent e435581215
commit 7f453f3fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      org-roam-node.el

@ -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))

Loading…
Cancel
Save