Replies: 2 comments 12 replies
-
Thank you for your comment and feedback. I am slowly coming back to this package (I have had to take care of some other commitments and deadlines in my other parts of life). Your comment has come at the right time. I am prototyping some changes. Your comment is helpful to me because it confirms my concern that deleting the link might not be the best approach. There are a couple things I will need to unpack here. Let me take a few days (hopefully only a few days) and come back to this thread. What I have done so far is still "destructive" but I might be able to avoid this and come up with an alternative---I need to see how I can incorporate your ideas. Thank you. |
Beta Was this translation helpful? Give feedback.
-
@ThomasJorna The issue is really not export. It's the structure of the resultant Org file. To illustrate, see the GIF below. See the =#+transclude= keyword. Once transclusion is done, it should be part of the transcluded headline "Heading". But now it remains to be part of "First Heading" above. If you fold the first headline, the keyword disappears... This was my primary reason for "removing" the link (now keyword). There may be a way to delay the deletion until the transclusion actually happens. |
Beta Was this translation helpful? Give feedback.
-
Hi nobiot, really love the package, this is exactly how I would want org-roam to function and prevents me from rewriting a ton of notes in different places.
However, the "destructive" nature of org-transclusion has been bothering me as well, and while it hasn't erased my work yet, it has come somewhat close. The most egregious thing that has happened has only been the deletion and non-reinsertion of some links, which is mildly annoying as I sometimes forgot that it did that. The problem I run into the most though, is org-transclusion simply not inserting the links, which is probably my fault since I use a lot of janky minor modes.
So I wanted to run an idea by you to see if it's feasible/you haven't tried it yourself. AFAIK, you decided to use the destructive version (partially) because otherwise exports would not work, which I get. However I think that could be fixed:
org-transclude-export
, which creates a new temporary buffer and either-- does the "destructive" transclusion there, or, more elegantly perhaps
-- changes the
#+transclusion
to#+include
with some modifications of:hlevel
to:minlevel
(this might not work that well)#+tranclusion-header
whenorg-transclusion-mode
is active, maybe like John Kitchin's implementation, but instead of making it:keymap
dependent activating it whenever the minor mode is active.I do need to give the disclaimer that I haven't looked deeply your code myself, so this might me nonsense. In any case, hope to hear from you, if you think this is worth trying I would love to help work on an implementation.
Beta Was this translation helpful? Give feedback.
All reactions