[Top][All Lists]

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

Re: Assistant to remove unused IDs of org-id

From: Marc Ihm
Subject: Re: Assistant to remove unused IDs of org-id
Date: Tue, 14 Apr 2020 22:50:09 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Hi Ihor,
Thanx ! Fixed it.
Details: I am now checking
(string= (org-attach-dir-from-id id) (org--attach-dir))
to see if the ID is used in the attachment dir (if it exists).
Background: I do not use attachments myself;
did not remember, they use IDs :-/
Best regards,

Am 14.04.2020 um 05:02 schrieb Ihor Radchenko:
I quickly looked through the code. It seems that you do not consider
attachments, which are normally stored in a folder named after the
entry's ID property. Deleting those ID is terrible idea.


Marc-Oliver Ihm <address@hidden> writes:


as I use the excellent package org-id in a somewhat non-standard way, I tend to 
produce IDs, that are not referenced from anywhere. Org-id handles this great 
and does not suffer in performance, but eventually I want to remove those 
unreferenced IDs.
Therefore I have written a small interactive assistant:


to help with removing those IDs.
The assistant (interactive function: org-id-cleanup) is quite detailed with its 
instructions and checks, so that the risk of doing harm ist reduced to a 
minimum, although not to zero (therefore the first step is to ask for a backup).

In any case I wonder, if this functionality (removing unreferenced IDs) could 
be helpful for anyone else.

So please feel free to have a look.
Finally I would be grateful for any comment whatsoever
(e.g. regarding the name of org-id-cleanup.el).

Best regards

reply via email to

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