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

Enable optional insertion of title line when renaming note #98

Closed jeffvalk closed 3 years ago

jeffvalk commented 3 years ago

Previously, the title line of a note was automatically updated when renaming the note; however, if a note did not already have a title line, this was simply ignored. This commit allows a title line to be inserted in the latter case. This behavior is controlled by a customizable variable, so that prior behavior can also be achieved.

Closes #97

jeffvalk commented 3 years ago

In the patch, zetteldeft-always-insert-title is defaulted to nil to preserve the prior behavior by default. Personally, I would recommend the default be t. I'll leave that at your discretion, @EFLS.

EFLS commented 3 years ago

Awesome! It does indeed make a lot of sense to set it to t, so I've done just that. Thanks for this contribution @jeffvalk!