~relict007

Recent activity

Re: [PATCH ~protesilaos/denote] don't try to find forward links in non-text files 6 months ago

From relict007 to ~protesilaos/denote

Protesilaos Stavrou <info@protesilaos.com> writes:

>> From: relict007 <utils+sr.ht@kotlak.com>
>> Date: Mon, 15 May 2023 08:48:38 +0530
>>
>> Hi Prot,
>>
>> Please find the patch as discussed in the mailing list to avoid reading
>> binary files when looking for forward links.
>
>> [... 31 lines elided]
>
> Thank you!  I made a minor tweak to remove the underscore and install

Re: Denote apis for getting forward and back links 6 months ago

From relict007 to ~protesilaos/denote

Protesilaos Stavrou <info@protesilaos.com> writes:

>> From: relict007 <utils+sr.ht@kotlak.com>
>> Date: Sat, 13 May 2023 15:27:43 +0530
>
>> [... 12 lines elided]
>
>> Thanks for taking time to respond to my comments.
>
> You are welcome!
>
>> [... 15 lines elided]
>

[PATCH ~protesilaos/denote] don't try to find forward links in non-text files 6 months ago

From relict007 to ~protesilaos/denote

Hi Prot,

Please find the patch as discussed in the mailing list to avoid reading
binary files when looking for forward links.

https://lists.sr.ht/~protesilaos/denote/%3C87a5ygk6yi.fsf%40kotlak.com%3E

thanks,

Re: Proposed solution for linking to non-Denote files 6 months ago

From relict007 to ~protesilaos/denote

Hi Peter,

Even I don't see this issue happening in my setup. Could you please
recheck if you are on the latest Denote, i.e. the latest git version
(and not the one in GNU ELPA)

I had a similar issue sometimes back and it was fixed here:

https://github.com/protesilaos/denote/issues/135

Also, @nobiot fixed a related issue here:

https://github.com/protesilaos/denote/issues/142

Re: Denote apis for getting forward and back links 6 months ago

From relict007 to ~protesilaos/denote

Protesilaos Stavrou <info@protesilaos.com> writes:

>> From: relict007 <utils+sr.ht@kotlak.com>
>> Date: Tue,  9 May 2023 17:13:12 +0530
>>
>> Hi Prot,
>
> Hello there!

Hi Prot,

Thanks for taking time to respond to my comments.

Re: Denote apis for getting forward and back links 6 months ago

From relict007 to ~protesilaos/denote

Hi Prot,

I pull'd the latest Denote and tested the newly added links
functions. With some adjustments to my code I was able to make it work,
however, there are a couple of points:

1. In function "denote-cache-rebuild-cache" we get a list of all Denote
files using "denote-directory-files" and try to get the metadata and
links of each file in a loop. However, the process pauses in between
when "denote-link-return-links" tries to open some large binary files
(e.g. with pdf Emacs asks if we want to open such a large file). Also,
it is kind of slow to open binary files with Emacs which causes initial
cache loading take lots of time. In my opinion if a Denote file is in

Re: Denote apis for getting forward and back links 6 months ago

From relict007 to ~protesilaos/denote

Protesilaos Stavrou <info@protesilaos.com> writes:

>> From: relict007 <utils+sr.ht@kotlak.com>
>> Date: Sun,  7 May 2023 20:14:59 +0530
>
>> [... 14 lines elided]
>
>>> I will check the details tomorrow.  This is just an early comment.  The
>>> idea is to provide public functions.  That way we cut down on
>>> duplication and potential conflicts.
>>>
>>> More to follow.
>>

Re: Denote apis for getting forward and back links 6 months ago

From relict007 to ~protesilaos/denote

Protesilaos Stavrou <info@protesilaos.com> writes:

>> From: relict007 <utils+sr.ht@kotlak.com>
>> Date: Sun,  7 May 2023 11:20:53 +0530
>>
>> Hi Prot,
>
> Hello there!

Hi Prot, 
>
>> I have written a small package to cache Denote files' metadata in memory
>> to help me with my specific use-cases.

Re: Denote apis for getting forward and back links 6 months ago

From relict007 to ~protesilaos/denote

Peter Prevos <peter@prevos.net> writes:

> Hi relict007,

Hi Peter,

>
> Thanks for writing these caching functions, could be useful in my
> efforts to visualise Denote networks.

You are welcome. Glad to be of help.

Denote apis for getting forward and back links 6 months ago

From relict007 to ~protesilaos/denote

Hi Prot,

I have written a small package to cache Denote files' metadata in memory
to help me with my specific use-cases.

https://git.sr.ht/~relict007/denote-cache

This package scans through all Denote notes and files and makes an
in-memory cache of their metadata including links for easy retrieval and
sorting etc. For this, I am using standard Emacs and Denote functions
that you have mentioned in "For developers or advanced users" section in
Denote manual. However, I could not find an easy way to retrieve forward
and back links using just the functions that you have mentioned