nobiot / org-transclusion

Emacs package to enable transclusion with Org Mode
https://nobiot.github.io/org-transclusion/
GNU General Public License v3.0
902 stars 43 forks source link

`org-transclusion-make-from-link` should not add transclusion link in next org heading #212

Closed josephmturner closed 6 months ago

josephmturner commented 6 months ago

I find the behavior of org-transclusion-make-from-link to be unexpected:

Given

* Heading A
Some text here
[[./link to transclude.org]]
* Heading B
Some more text here

With point on the link, if I run org-transclusion-make-from-link, I would expect to see:

* Heading A
Some text here
[[./link to transclude.org]]
#+transclude: [[./link to transclude.org]]
* Heading B
Some more text here

but instead the buffer shows:

* Heading A
Some text here
[[./link to transclude.org]]
* Heading B
Some more text here
#+transclude: [[file:./link to transclude.org]]

Would you be open to stopping upon reaching an org heading?

josephmturner commented 6 months ago

214 resolves this issue.