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

Use inactive timestamp in headline rather than CREATED property

Open xeruf opened this issue 3 years ago • 6 comments

Is your feature request related to a problem? Please describe. This is sort of a follow-up to https://github.com/bastibe/org-journal/issues/188 Currently, journal entries look like this:

* Monday, 2021-05-03
:PROPERTIES:
:CREATED:  20210503
:END:

or, with the customization from the aforementioned issue, this:

* Monday, 2021-05-03
:PROPERTIES:
:CREATED:  [2021-05-03]
:END:

Describe the solution you'd like How about, instead of a separate created property, embedding it right in the headline? For example, my handcrafted file I used before org-journal looked like this:

* [2021-04-16 Fri] New Creations
** 10 Browsing
** 11 Creativity LU Reflection
** 13 Administration :shell:
** 18 Zsh completion :shell:
* [2021-04-15 Thu] Independence
** Read in Walden
** 10 Haskell linking :haskell:

Describe alternatives you've considered I can customize both org-journal-date-format and org-journal-created-property-timestamp-format, but I dislike redundant information ;)

xeruf avatar May 03 '21 17:05 xeruf

I like the look of this.

But I think some users will still prefer the property for their org-mode or agenda integration.

bastibe avatar May 05 '21 08:05 bastibe

This could be implemented by not setting the created property when org-journal-created-property-timestamp-format is nil. Then it expects the respective constraints to be fulfilled in org-journal-date-format instead so it can search these.

xeruf avatar May 05 '21 09:05 xeruf

This could be implemented by not setting the created property when org-journal-created-property-timestamp-format is nil. Then it expects the respective constraints to be fulfilled in org-journal-date-format instead so it can search these.

Good idea. We wouldn't need to change to much than.

There is also the possibility to mark text as invisible. However, I currently don't know how this behaves when there follows some more text on the same line....

casch-at avatar May 05 '21 10:05 casch-at

Why would we make it invisible? I like having the timestamp there.

xeruf avatar May 19 '21 08:05 xeruf

I missed the fact that you meant to put it right in the header instead of the date. Anyway, the property is just used internally by org-journal to find the journals, hence we could hide it. We can of course add a variable to make it optionally...

casch-at avatar May 19 '21 09:05 casch-at

No need to add a separate variable. As said, simply add the possibility for org-journal-created-property-timestamp-format to be nil.

xeruf avatar Jun 05 '21 15:06 xeruf