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

How to get a link's tag name to update to the latest headline? #215

Open Prague2049 opened 6 months ago

Prague2049 commented 6 months ago

1.There is a org-mode file with a headline as follow:

nobiot commented 6 months ago

Sorry, I don't understand all the IDs and files.

   FILE1 (F1)
      SECTION1 (S1)

   FILE2 (F2)
      SECTION2 (S2)
   F1
      S1 :tag:

   F2
      S2
      S1’ :tag:

If you have a tag to S1, S1’ will have it, too. That's how it works on my end now.

Does this describe your situation?

Prague2049 commented 6 months ago

Thank you for your reply. When I have a headline like s1 in FILE1, I create an ID attribute for s1 with org-id-get-create. So I can insert this s1 in FILE2 with org-roam-node-insert. when I change s1 to s2 in FILE1, is there any way to make the existing link name in FILE2 update to s2 automatically? 1.In the FILE1 file:

nobiot commented 6 months ago

Here is how I understood your question.

  1. You have FILE1 and FILE2 (both .org files).
FILE1
* H1-Title
  ID1

FILE2
* H2-Title
  ID2

  [[id:ID1][H1-Title]]
  1. You change the title of H1, eg to "H1-Title changed".

  2. You expect the link in FILE2 to automatically change to [[id:ID1][H1-Title changed]].

Your question is: Does Org-translusion have this feature?

Is this correct?

If so, the answer is: No, Org-transclusion does not have a function to do this.

You also mention Org-roam. This s not a place to discuss other packages, but as far as I know, Org-roam doesn't do this, either. Nor does Org mode.

Prague2049 commented 6 months ago

Yes! Thank you for your reply!