emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Gendre" <seb@k-7.ch>
To: "Rick Lupton" <mail@ricklupton.name>
Cc: "Y. E." <emacs-orgmode@gnu.org>
Subject: Re: Org version 9.7 and id: links
Date: Sun, 10 Nov 2024 21:27:48 +0100	[thread overview]
Message-ID: <87seryal6j.fsf@k-7.ch> (raw)
In-Reply-To: <1f1890e2-d95b-4b36-aaa5-aa916e56cbeb@app.fastmail.com> (Rick Lupton's message of "Fri, 08 Nov 2024 18:29:42 +0000")

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

Hi,

Thank you for you reply.

So, if I understand correctly:

* On a "file:" link, it is possible to add "::#custom-id" at the end to
  tel Org-mode to search the "custom-id" as a target of the link

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



"Rick Lupton" <mail@ricklupton.name> writes:

> Hi,
>
> See https://orgmode.org/manual/Search-Options.html
>
> Best
> Rick
>
> On Fri, 8 Nov 2024, at 4:14 PM, Sébastien Gendre wrote:
>> Hello,
>>
>> On the Org-mode version 9.7 release note [1], there is a new feature I do
>> not understand. It's the "id:" links support search options.
>>
>> The release note say:
>>
>>
>>> id: links support search options; org-id-store-link adds search option
>>> by default
>>> 
>>> Adding search option by org-id-store-link can be disabled by setting
>>> org-id-link-use-context to nil, or toggled for a single call by
>>> passing universal argument.
>>> 
>>> When using this feature, IDs should not include ::, which is used in
>>> links to indicate the start of the search string. For backwards
>>> compatibility, existing IDs including :: will still be matched (but
>>> cannot be used together with search option). A new org-lint checker
>>> has been added to warn about this.
>>
>> What are the id: search options ? How does it work and how to use it ?
>>
>>
>> Best regards
>>
>> -------
>> Gendre Sébastien
>>
>>
>> [1] https://orgmode.org/Changes.html
>>
>> Attachments:
>> * signature.asc

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

  reply	other threads:[~2024-11-10 20:28 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 [this message]
2024-11-11  7:05     ` Ihor Radchenko

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=87seryal6j.fsf@k-7.ch \
    --to=seb@k-7.ch \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@ricklupton.name \
    /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).