Thanks for your insights and opinions.
On Monday, October 06, 2025, Dr. Arne Babenhauserheide wrote: > Ihor Radchenko <[email protected]> writes: > >> "Dr. Arne Babenhauserheide" <[email protected]> writes: >> >>>>>> [[id:12345::anchor]] >>> ... >>> Since IDs are only guaranteed to be unique within the file (as far as I >>> know, please correct me if I’m wrong), that doesn’t sound like a fix. >> >> You are wrong. ID property is generally supposed to be unique. > > You’re right. I sidetracked myself looking at the example. The IDs I see > in my org-files are uuids, so they are unique. Yes - I wonder if the majority of people is really using the outline-path because the ID/uuid seems a much better way to refer to org-items. (but I am also a database guy who thinks in terms of primary keys :)) [[ As an other example: I created a function to block an org-mode Item and create a reference to the item that blocks it. With this way, I can model dependencies between unrelated org-items which is very useful for my workflow ]] > I just tried whether org publish resolves id links correctly and it > failed: the ID got resolved to the local file path, not the relative > file path on the server. I think that org-publish should be able to handle this. Is anyone working on that? I am not really using org-publish right now but having some way of resolving that would be nice, so I may look into that at some point in time. > However links created by org-store-link with the filename already fail > (I just tried …), so this may not be a regression and may actually open > a path to improving org-publish. > > I withdraw my objection. Thank you for your reply! Is there any chance to get this into org-mode? To me, preferring the ID over the outline-path seems to be the best approach (at least when a ID/uuid is set) because it is more "stable" in the long term. But if it breaks too many existing workflows for org-mode users, a configuration variable might also be possible (I can try to submit a patch for that, just let me know). The configuration variable might also be useful to specify whether to use CUSTOM_ID, the Org-Mode ID or the outline-path and there seems to be some interest and/or confusion in that according to this reddit conversation: <https://www.reddit.com/r/emacs/comments/rn41f7/storing_a_link_to_an_orgid/> -- Christian Barthel
