Apologies. This time, I'm reseding to create new thread...
---
Hi Prot
This patch is motivated by our recent GitHub discussion on an issue #115
,specially this comment by Prot:
https://github.com/protesilaos/denote/issues/115#issuecomment-1345153297
"The obvious use-case is to add hyphens and colons to the date and
time components of the identifier. Though we can build on that".
I am proposing to add a denote-specific 'thing-at-point' extension to
identify denote-id with using 'denote-id-regexp'. This lets 'denote-id'
at point can be identified and retrieved even when 'denote-id-regepxp' is
customized.
The 'thing-at-point' can be used across other denote moduels and
packages to identify denote-id at point. As an example, it is already
useful for the denote xref module. I customize my denote-id to this
format: yyyy-mm-ddThhmmss. This change will let me retire my method
override for 'xref-backend-identifier-at-point'.
Warm regards,
nobiot
> From: Noboru Ota <me@nobiot.com>> Date: Sat, 10 Dec 2022 19:57:08 +0100>> Apologies. This time, I'm reseding to create new thread...
Okay, responding to this one directly.
> ---> Hi Prot
Hello nobiot,
> This patch is motivated by our recent GitHub discussion on an issue #115> ,specially this comment by Prot:> https://github.com/protesilaos/denote/issues/115#issuecomment-1345153297>> "The obvious use-case is to add hyphens and colons to the date and> time components of the identifier. Though we can build on that".>> I am proposing to add a denote-specific 'thing-at-point' extension to> identify denote-id with using 'denote-id-regexp'. This lets 'denote-id'> at point can be identified and retrieved even when 'denote-id-regepxp' is> customized.>> The 'thing-at-point' can be used across other denote moduels and> packages to identify denote-id at point. As an example, it is already> useful for the denote xref module. I customize my denote-id to this> format: yyyy-mm-ddThhmmss. This change will let me retire my method> override for 'xref-backend-identifier-at-point'.
Very well! Before proceeding with this, maybe we can do something about
the 'denote-link--link-at-point-string' and thus have a more general
approach?
All the best,
Prot
--
Protesilaos Stavrou
https://protesilaos.com
> Very well! Before proceeding with this, maybe we can do something about> the 'denote-link--link-at-point-string' and thus have a more general> approach?
Of course, we can take a look. I don’t seem to able to just get the identifier without the “denote:” string. Is there a good way with this function?
nobiot
By the way, this can wait until we finalize the
next release; perhaps you need a bit more
headspace to focus on updating the manual,
etc…
> On 11. Dec 2022, at 16:21, Noboru <me@nobiot.com> wrote:> > >> Very well! Before proceeding with this, maybe we can do something about>> the 'denote-link--link-at-point-string' and thus have a more general>> approach?> > Of course, we can take a look. I don’t seem to able to just get the identifier without the “denote:” string. Is there a good way with this function?> > nobiot>