mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
fix #2425
(kill-whole-line) kills folded text if called from column 1 Make sure to unfold text before calling it -- Prevents data loss if user has decided to extract subtree on a folded org headline.
This commit is contained in:
@ -880,6 +880,7 @@ node."
|
||||
(org-with-point-at 1
|
||||
(let ((title (nth 4 (org-heading-components)))
|
||||
(tags (org-get-tags)))
|
||||
(org-fold-show-all)
|
||||
(kill-whole-line)
|
||||
(org-roam-end-of-meta-data t)
|
||||
(insert "#+title: " title "\n")
|
||||
|
Reference in New Issue
Block a user