org-journal icon indicating copy to clipboard operation
org-journal copied to clipboard

Question: How do I avoid creating a TODO entry for future date

Open yosevu opened this issue 3 years ago • 5 comments

org-journal-new-scheduled-entry - prompts for a date, and creates a new journal entry on that date with its timestamp set to the date. By default, this is a TODO entry. Set the prefix to avoid the TODO.

Hello, I see the above note in the README, but I haven't been able to get it to work yet. How do I prevent the following from being added?

TODO 
<2021-06-27 Sun 00:00>

Config:

(org-journal-file-header "#+title: %Y Journal\n#+created: %Y-%m-%d\n#+filetags: \"journal\"\n\n")
  (org-journal-date-format "[%Y-%m-%d %a %R] - Week %V")
  (org-journal-date-prefix "* ")
  (org-journal-time-format "")
  (org-journal-time-prefix ""))

Action: org-journal-new-date-entry with future date.

Result:

Screen Shot 2021-06-26 at 8 46 04 PM

yosevu avatar Jun 27 '21 01:06 yosevu

If I remember correctly, C-u when creating the entry prevents the TODO and timestamp.

bastibe avatar Jun 28 '21 19:06 bastibe

Ah, thanks. I see that in the function doc. It doesn't add the TODO anymore. Is there a way to also omit the schedule date?

Screen Shot 2021-07-06 at 11 43 19 PM

yosevu avatar Jul 07 '21 04:07 yosevu

A double-prefix (C-u C-u) should prevent the creation of the timestamp as well.

bastibe avatar Jul 07 '21 10:07 bastibe

Hmm, I do see the doc in org-journal-new-date-entry, but it still seems to only remove the TODO after:

  1. C-u C-u
  2. org-journal-new-date-entry
  3. Select future date
  4. Return
Screen Shot 2021-07-18 at 8 58 02 AM

What else could I be missing?

yosevu avatar Jul 18 '21 13:07 yosevu

Indeed. This seems to be a bug in the documentation. This functionality probably used to work at some time, but got lost during a refactoring. Sorry about that.

I currently don't have the time to look into this in-depth. But if you'd like to take a stab at it, I'll try to help you as best I can.

bastibe avatar Jul 20 '21 19:07 bastibe