Org-transclusion-mode does not show the desired content

If a user is in a working note. The user would like to link a note to
this file. The expected procedure would be org-roam-insert, then
find the corresponding note.

* testing example
If a user is in a working note. The user would like to link a note to
this file. The expected procedure would be `org-roam-insert`, then
find the corresponding note.


    [[file:20201106143208-testing_example_using_file.org][testing example using file note]]
    [[file:20201106143003-testing_example_a.org::*headline 2][testing example using headline]]

This is before activing org-transclusion-mode:

This is after activing org-transclusion-mode:

Two issues observed:

  1. transclusion with file only shows the last paragraph.
  2. transclusion with org-id shows extra information (i.e. :PROPERTIES:,:ID:,:END:)

Contents of file:
Note using a single file:
20201106143208-testing_example_using_file.org

#+begin_export ascii
#+TITLE: testing example using file
#+CREATED:       [2020-11-06 Fri 14:32]
#+LAST_MODIFIED: [2020-11-06 Fri 15:30]

This is the 1st paragraph. I like org-roam.

This is the 2nd paragraph. I like org-transclusion.

This is the 3rd paragraph. I like emacs.
#+end_export

Note using headline and reference them using org-id
file:20201106143003-testing_example_a.org::*headline 2

#+begin_export ascii
#+TITLE: testing example A
#+CREATED:       [2020-11-06 Fri 14:30]
#+LAST_MODIFIED: [2020-11-06 Fri 15:31]

* headline 1
  :PROPERTIES:
  :ID:       UUID-A
  :END:
* headline 2
  :PROPERTIES:
  :ID:       UUID-B
  :END:

I wrote something in headline 2, and this is the 1st paragraph.

I wrote something in secondary paragraph.

I also wrote something in third paragraph.
* headline 3
#+end_export

Hi @cool_ran,

Thank you for trying out Org-transclusion, and the feedback. Really cool that it looks working on your machine.

This part is related to Org-roam.

The rest of the post on your observations is issues of Org-transclusion. Is this correct?

Could you please elaborate on the relationship between org-roam-insert and how org-transclusion (does not) work?

If these are not related, could we please either move the issue report to my GitHub repo, or put it in my Discourse post. If you don’t mind, I could do that for you.

I am myself guilty of borrowing some space in Org-roam Discourse forum and Slack in the hope that Org-transclusion is something of interest for the community (I am hoping to achieve some interoperability at a later stage). However… I think we should be mindful of the fact that this is a forum for Org-roam…

I opened issues in your repository. Please have a look.

1 Like

Thank you!