Context: I am looking for a clean way to declare buffer level metadata to Org files. Some properties can only be declared at level-0 (i.e. buffer level) and others only in a property drawer, which is usually reserved for headline level.
Problem: When using org-id, a property drawer is added to the very beginning of the file, above any other header metadata, which looks strange (and incorrect, if property drawers are to be associated with headings). See the following example of a document after running M-x: org-store-link
:
:PROPERTIES:
:ID: 532C66A1-C2F3-4B7F-9BA6-AB812449E3DF
:END:
#+Title: Cy B. Org's Day Out
#+Author: John Doe
#+Filetags: notes
I have read and tried the methods for using IDs here but could not find any improvement. Ideally, I would like to have something like either of the following examples. Is this possible to do while correctly using org syntax? That is, both (org-get-title)
and (org-id-get)
return a value correctly and M-x: org-lint
does not show issues.
#+Title: Cy B. Org's Day Out
#+Author: John Doe
#+Filetags: notes
#+ID: 532C66A1-C2F3-4B7F-9BA6-AB812449E3DF
OR
:PROPERTIES: ; or "METADATA", "FILEDATA", etc.
:Title: Cy B. Org's Day Out
:Author: John Doe
:Filetags: notes
:ID: 532C66A1-C2F3-4B7F-9BA6-AB812449E3DF
:END:
Some additional documentation to read includes the Org manual on: Tag Inheritance and Property Syntax.