emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: Rick Lupton <mail@ricklupton.name>, "Y. E." <emacs-orgmode@gnu.org>
Subject: Re: Org version 9.7 and id: links
Date: Mon, 11 Nov 2024 07:05:41 +0000	[thread overview]
Message-ID: <87wmhacksa.fsf@localhost> (raw)
In-Reply-To: <87seryal6j.fsf@k-7.ch>

Sébastien Gendre <seb@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	other threads:[~2024-11-11 10:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-08 16:14 Org version 9.7 and id: links Sébastien Gendre
2024-11-08 18:29 ` Rick Lupton
2024-11-10 20:27   ` Sébastien Gendre
2024-11-11  7:05     ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wmhacksa.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@ricklupton.name \
    --cc=seb@k-7.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).