I want to switch from daily files to monthly (or even yearly). The problem I'm facing is: org-journal-new-entry
and org-journal-new-scheduled-entry
simply append at the bottom of a file. This can result in unsorted days - can this be sorted?.
(extreme) example:
config
(use-package org-journal
:ensure t
:defer t
:bind
("C-c n j" . org-journal-new-entry)
("C-c n s" . org-journal-new-scheduled-entry)
:custom
(org-journal-file-format "%Y-%m.org")
(org-journal-enable-agenda-integration t)
:config
(setq org-journal-dir org-journal-directory)
(setq org-journal-file-type 'monthly)
(setq org-journal-date-format " %d/%m/%y - %A")
(setq org-journal-file-header "#+title: %B Journal")
Then:
- Add new scheduled in the future
- Add new entry today
- Add new entry in the past
Result:
#+title: October Journal
* 08/10/20 - Thursday
:PROPERTIES:
:CREATED: 20201008
:END:
** First: New Scheduled
<2020-10-08>
* 06/10/20 - Tuesday
:PROPERTIES:
:CREATED: 20201006
:END:
** 12:46 Second: new Entry
* 05/10/20 - Monday
:PROPERTIES:
:CREATED: 20201005
:END:
** Third: new scheduled in past
<2020-10-05>
my goal
would be to have entries in the file correctly sorted from top to bottom (basically the oppositve of my result)