Sébastien Gendre <s...@k-7.ch> writes:

> * With Org 9.7, an "id:" can also have "::#custom-id" at the end
>
> * "org-id-store-link" add it by default
>
>
> But an "id:" link already contain an ID, why adding it a second time at
> the end of the link ?

Example 1:

You have top-level property drawer in a file:
:PROPERTIES:
:ID: file-id
:END:

Then, you can refer to headings in the file as
[[id:file-id::heading-id]] instead of
[[file:/path/to/file/that/may/change::heading-id]].

Example 2:

You have a subtree with only the topmost heading with ID. You do not
want to pollute child headings with PROPERTIES drawer, but you cannot
reference them using [[*heading]] links either because the child heading
titles are not unique. Then, you can do
[[id:parent-id::*child title]] to refer to a child.

-- 
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>

Reply via email to