Whenever I create
org-mode entries using
org-capture they automatically get an ID property. Is it possible to disable that? I'm using org mode version 9.0.5.
So I think I've found a way, but its not very elegant:
(defun org-remove-id-from-last-capture () "Remove ID property from last `org-capture' entry, save capture buffer." (let* ((properties (org-entry-properties org-capture-last-stored-marker)) (file (cdr (assoc "FILE" properties)))) (when (org-entry-delete org-capture-last-stored-marker "ID") (with-current-buffer (get-file-buffer file) (save-buffer))))) (add-hook 'org-capture-after-finalize-hook #'org-remove-id-from-last-capture)
Sorry this answer may be better go to comment but I don't have enough reputation.
Short Version: It there any possibility that you used any package related with bookmarks or global-jump to org heading? If so, then trying to disable them may be helpful.
Long Version: I happened to have the same problem that an ID will be attached and stop the clock-in timer if there is any.
Following steps are done for a capture to finalize: (would be incomplete):
- Insert the capture content to target location
- Save a bookmark called "org-capture-last-stored" to your Bookmarks
- Save the target file
And in my case, I found no function related to org-id in step 1 and 3 but in step 2, there is one package called "org-bookmark-heading" which is used to jump to a heading from bookmark. It will take over when creating a bookmark and generate the ID.
In all, I would suggest to check any packages related to bookmarks, head creation and save-hook.