bastibe / org-journal

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

org-journal-carryover-items for items except "DONE" but deleted entries instead #393

Open baogiadoan opened 2 years ago

baogiadoan commented 2 years ago

Describe the bug I tried with the config (setq org-journal-carryover-items "-TODO=\"DONE\"") to move all items except "DONE" to be carried to the new date. However if I config that way everytime I create new entry it will somehow mess up with the current-date entries and delete the headings of the current date.

To Reproduce Steps to reproduce the behavior: Set this in the config: (setq org-journal-carryover-items "-TODO=\"DONE\"") and initiate org-journal-new-entry

Expected behavior All items except "DONE" will be carried to next date.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Your Emacs Configuration The part relevant to org-journal.

(use-package! org-journal
    :ensure t
    :defer t
    :init
    :config
    (setq org-journal-dir "~/ownCloud/org/journal/"
          org-journal-file-format "%Y.org"
          org-journal-file-type 'yearly
          org-journal-enable-agenda-integration t
          org-journal-date-format "%A, %d/%m/%y"
          org-journal-carryover-items "-TODO=\"DONE\"" ;; set carry over exclude DONE
     ))
bastibe commented 2 years ago

Could you give an example of how things get "messed up"?

baogiadoan commented 2 years ago

It will delete the heading of the current date, e.g. Tuesday, 21/06/2022 and all of its subheadings (entries) under that date, and then create a new entry in the previous date, not sure it will delete entries in previous date as well.

On Tue, 21 Jun 2022 at 16:15, Bastian Bechtold @.***> wrote:

Could you give an example of how things get "messed up"?

— Reply to this email directly, view it on GitHub https://github.com/bastibe/org-journal/issues/393#issuecomment-1161328927, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFZFNH7QCX4O3PFNYD2CZTVQFQHNANCNFSM5YE2WXYA . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards, Bao

bastibe commented 2 years ago

Could you paste an example?