~protesilaos/denote

3 2

[PATCH] feat: thing-at-point 'denote-id

Details
Message ID
<86mt7v13zv.fsf@nobiot.com>
DKIM signature
missing
Download raw message
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
Details
Message ID
<87iliizl1x.fsf@protesilaos.com>
In-Reply-To
<86mt7v13zv.fsf@nobiot.com> (view parent)
DKIM signature
pass
Download raw message
> 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
Details
Message ID
<EAB73A4F-E1CC-4589-A51B-43D4944A034B@nobiot.com>
In-Reply-To
<87iliizl1x.fsf@protesilaos.com> (view parent)
DKIM signature
missing
Download raw message
> 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
Details
Message ID
<CBB475B6-C533-4CB0-808F-48B7C08B32AE@nobiot.com>
In-Reply-To
<EAB73A4F-E1CC-4589-A51B-43D4944A034B@nobiot.com> (view parent)
DKIM signature
missing
Download raw message
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
> 
Reply to thread Export thread (mbox)