[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org-id: allow using parent's existing id in links to headlin
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] org-id: allow using parent's existing id in links to headlines |
Date: |
Wed, 26 Jul 2023 08:10:31 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
> I am not excited by the idea of extending id links for heading
> hierarchy. From my point of view it is more natural to add the ID
> property to the heading that should be link target.
>
> Sometimes I do not mind to disambiguate heading search link by
> specifying title of its ancestor. I usually add the CUSTOM_ID property
> or rename heading to be unique.
>
> I am afraid that allowing arbitrary link types to specify path to an
> element is overkill. It is not XPath and not CSS selectors.
I am looking at it from an opposite direction: we already have file:
links with ::search term, but file is not a very reliable link anchor.
File ID will persist even when the file is moved. So, instead of having
something like <file:/path/to/foo.org::* Heading>, we should better also
provide <id:ID::*heading> with ID defined in the top-level property
drawer. ID being some sub-heading is then a natural extension of the
same idea.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- [PATCH] org-id: allow using parent's existing id in links to headlines, Rick Lupton, 2023/07/24
- Re: [PATCH] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2023/07/25
- Re: [PATCH] org-id: allow using parent's existing id in links to headlines, Max Nikulin, 2023/07/25
- Re: [PATCH] org-id: allow using parent's existing id in links to headlines,
Ihor Radchenko <=
- Re: [PATCH] org-id: allow using parent's existing id in links to headlines, Samuel Wales, 2023/07/26
- IDs below headline level (for paragraphs, lists, etc) (was: [PATCH] org-id: allow using parent's existing id in links to headlines), Ihor Radchenko, 2023/07/27
- Re: IDs below headline level (for paragraphs, lists, etc) (was: [PATCH] org-id: allow using parent's existing id in links to headlines), Rick Lupton, 2023/07/28
- Re: [PATCH] org-id: allow using parent's existing id in links to headlines, Rick Lupton, 2023/07/28
- Re: [PATCH] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2023/07/29