bastibe / org-journal

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

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

Open yosevu opened 3 years ago

yosevu commented 3 years ago

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
bastibe commented 3 years ago

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

yosevu commented 3 years ago

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
bastibe commented 3 years ago

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

yosevu commented 3 years ago

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?

bastibe commented 3 years ago

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.