EFLS / zetteldeft

A Zettelkasten system! Or rather, some functions on top of the emacs deft package.
https://efls.github.io/zetteldeft
GNU General Public License v3.0
394 stars 42 forks source link

#+CREATED: and #+LAST_MODIFIED properties #112

Closed iburunat closed 3 years ago

iburunat commented 3 years ago

Hi, and thanks a mil for this package. Apologies in advance if this has been discussed elsewhere. Is there a way to include (like in org-roam) a #+created and #+last_modified properties at the header of the buffer (the latter would update automatically upon subsequent changes)?

#+TITLE: Zetteldeft is awesome
#+CREATED: [2021-05-08 Sat 21:39]
#+LAST_MODIFIED: [2021-05-08 Sat 21:39]

Thanks!

iburunat commented 3 years ago

Just found out how to add this:

(setq zetteldeft-title-suffix "\n #+CREATED:\n #+LAST_MODIFIED:")

However, only the created date seems to work. Not sure why.

#+TITLE: testing
 #+CREATED:
 #+LAST_MODIFIED:[2021-05-08 Sat 23:06]
EFLS commented 3 years ago

Hi, I think this has been asked in the past but can't seem to find that specific discussion.

Regards the creation date: by default Zetteldeft will generate a note ID with the creation date. You could thus refer to a note's ID to see when it was created?

Not sure how to achieve the last modified one, to be honest. Probably possible by writing some functions that would be executed each time a file is saved.

iburunat commented 3 years ago

You could thus refer to a note's ID to see when it was created?

Brilliant :) Actually, the "LAST_MODIFIED" property works fine, it gets updated upon each change. Thanks!