[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Interest] Determanistic Org IDs

From: Alexander Adolf
Subject: Re: [Interest] Determanistic Org IDs
Date: Fri, 24 Jul 2020 14:09:13 +0200

Hello Timothy,

TEC <tecosaur@gmail.com> writes:

> [...]
> Pros:
>  - Reduced 'noise' if exported files are commited - (With HTML) 
>  links to particular elements in a file keep working across 
>    multiple versions, most of the time 
>  - (With HTML) links become more descriptive 
> Cons:
> - Inceased chance of ID collisions across files Longer IDs  I 
> - think this could make a nice option for export settings. I'm 
> - aware of the 9.5 feature freeze, but thought I'd mention the 
> - idea to see if there's any interest in it.
> If you want to see what I've got happening, see 
> https://tecosaur.github.io/emacs-config/config.html#nicer-generated-heading.
> [...]

Interesting. Just a thought: have you considered computing a SHA-2 hash
over either the totality of the heading and all its children (if you
want the links to change when the content changes), or only the heading
itself (keeping the id invariant for as long as the heading remains
unchanged, but content below it can change)?

This would have the advantage of solving both, your "noise issue" and at
the same time removing the threat of id collisions; but at the cost of
not having "speaking" links.

Hoping to have helped,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]