bastibe / org-journal

A simple org-mode based journaling mode
BSD 3-Clause "New" or "Revised" License
1.24k stars 124 forks source link

(org-journal-file-type 'weekly) cannot org-journal-search files that were made in (org-journal-file-type 'daily) #357

Open DesiQuintans opened 3 years ago

DesiQuintans commented 3 years ago

Describe the bug I have a journal that began as a daily journal (org-journal-file-type 'daily), but then I turned it into a weekly journal (org-journal-file-type 'weekly). Files that were created when the journal was still in daily mode are not searched by org-journal-search, it is like they don't exist.

This is because they are lacking the :CREATED: field in PROPERTIES that weekly mode adds. When I add the PROPERTIES to the daily journal files, they become visible to org-journal-search.

To Fix Make the daily mode add a :CREATED: property to every file regardless of mode.

bastibe commented 3 years ago

Good idea! Would you like to contribute a pull request?

DesiQuintans commented 3 years ago

Perhaps, but I don't know elisp yet. I am happy to do it later when I do learn, but if anyone wants to jump in and do it before me, I would appreciate it a lot.

rbenson commented 3 years ago

I started with a weekly journal, and i get no results when searching