fix(org): show outline path on refile to current file

Before this change, the +org/refile-to-current-file command would
display a flat list of tail headings in the current file, without
context, which can result in duplicates and can make it difficult to
tell where you're refiling a heading to.

This changes each heading to be a full path.
This commit is contained in:
Manjinder Singh 2021-11-08 16:40:44 -05:00 committed by Henrik Lissner
parent 77f3fea66a
commit e303be6951

View file

@ -8,7 +8,7 @@
If prefix ARG, copy instead of move." If prefix ARG, copy instead of move."
(interactive "P") (interactive "P")
(let ((org-refile-targets `((,file :maxlevel . 10))) (let ((org-refile-targets `((,file :maxlevel . 10)))
(org-refile-use-outline-path nil) (org-refile-use-outline-path t)
(org-refile-keep arg) (org-refile-keep arg)
current-prefix-arg) current-prefix-arg)
(call-interactively #'org-refile))) (call-interactively #'org-refile)))