Skip to content

Is org-id-get-create always necessary in org-download-clipboard? #225

@okomestudio

Description

@okomestudio

This is a question about the presence of the org-id-get-create function in org-download-clipboard.

At the following line

https://github.com/abo-abo/org-download/blob/master/org-download.el#L420

the function executes org-id-get-create, so that every time that I execute org-download-clipboard, it creates an ID property if it does not already exists.

I'd assume that this ID property creation is to ensure the existence of ID in case the Org attachment facility is in use (in which case ID is used to generate directory to store the attached content).

I use 'directory for org-download-method and save downloaded images to the current directory, so the extraneous ID creation is spurious in this use case. I use the package with org-roam and I have my own guideline as to whether an Org heading should have an ID or not.

Is there any harm in running the org-id-get-create conditionally only when org-download-methd is 'attach? Or are there any other ripple effects?

I could send in a patch and PR if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions