emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kepa <gnu.cognition199@slmails.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Ideas to generate unique search context for id:links
Date: Sun, 25 Aug 2024 19:42:18 +0200	[thread overview]
Message-ID: <172460774596.6.5560656632023294947.415321983@slmails.com> (raw)

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

> Ideas to generate unique search context for id:links
> From:     Kepa
> Subject:     Ideas to generate unique search context for id:links
> Date:     Sun, 25 Aug 2024 13:07:01 +0200
> Hi
>
> I'm exploring the new option implemented in org 9.7:
>
> "id: links support search options like [[id:my-id::*child heading]]: 
> Any valid fuzzy location will work as a search option."
>
>
> Do you use any way to generate UNIQUE search contexts?
>
>
> I was thinking about submitting this feature request, but probably it 
> will have caveats:
>
> If the search context is in the form "fn:number", update that "number" 
> too when normalizing footnotes (org-footnote-normalize.
>
> For example:
>
> * headline 1
>
> :PROPERTIES:
> :ID:       2024-08-25T121008356645
> :END:
>
> blah blah [fn:20] blah
>
> * headline 2
>
> The goal is to automatically create unique search contexts using the 
> features of the footnotes, like in this link to 
> [[id:2024-08-25T121008356645::fn:20][blah]]

Caveat 1: If the footnote reference has not a footnote definition, 
after (org-footnote-normalize) a definition proposal appears (even if 
Org Footnote Define Inline is set to "t").

Caveat 2: If the proposed "id:link" is in a different file than the 
footnote reference, it could be impractical updating its fn:number with 
(org-footnote-normalize).

Interesting option: setting Org Footnote Auto Label to "Create a random 
label" could work as it is to generate unique search contexts. Just 
never, never, ever  (org-footnote-normalize) should be used.


[-- Attachment #2: Type: text/html, Size: 2362 bytes --]

             reply	other threads:[~2024-08-25 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25 17:42 Kepa [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-25 11:07 Ideas to generate unique search context for id:links Kepa
2024-09-01 17:55 ` 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=172460774596.6.5560656632023294947.415321983@slmails.com \
    --to=gnu.cognition199@slmails.com \
    --cc=emacs-orgmode@gnu.org \
    /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).