nobiot / org-transclusion

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

Show org-remark highlights #171

Open leinfink opened 1 year ago

leinfink commented 1 year ago

Hi!

I love both of your packages, org-transclusion and org-remark. I'm not sure where to put this feature request, as it pertains to both of them. I would love to be able to see highlights done with org-remark in transcluded sections.

That's probably not a trivial thing to do. Perhaps org-transclusion could manually check whether there are remarks and then create a temporary org-remark highlight with adapted position values? I guess that would have to be done as an extension then, in order not to clutter the package.

nobiot commented 1 year ago

@leinfink Thank you for your kind words.

I agree that it would have to be an extension, as I would like to avoid Org-remark dependent on Org-transclusion and vice versa.

Having said this, my gut feel is that it will not be easy to achieve what you request here. I am assuming you would transclude some Org elements or entire Org file. It's already challenging to let the transclusion target the exact location of the source text (technical details are described here). On top of this, the filtering makes it even more difficult -- the target and source text can be considerably different when you use the filters.

At this stage, I don't have even a clue to start framing what would be required to achieve transclusion including the remark-overlay...

I will keep this issue open. Maybe someone with expertise could jump in and help us.

leinfink commented 1 year ago

I understand. Thank you for answering!