[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: |
Samuel Wales |
Subject: |
Re: [PATCH] org-id: allow using parent's existing id in links to headlines |
Date: |
Wed, 26 Jul 2023 17:16:42 -0700 |
i can see the appeal given the granularity of id [headings, files]. yu
want to point to smaller things. but what if those smaller things
could have ids without drawers? id markers. then changes in
surrounding text would not break anything.
On 7/26/23, Ihor Radchenko <yantar92@posteo.net> wrote:
> 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>
>
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
- [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, 2023/07/26
- Re: [PATCH] org-id: allow using parent's existing id in links to headlines,
Samuel Wales <=
- 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