Closed ecks closed 4 years ago
Hi Hristo, thanks for this. I think it would be nice if it could be configurable, global variable sounds nice.
Hey Michal,
I made a change to the PR, where it is controlled through global toggle. Could you take a look?
Hi Hristo, I've changed your code slightly. Instead of a global variable, I've added a new formatting strings to the g:zettel_format
variable. %title
will insert the sanitized title - it is lower cased, spaces replaced with underscored and dangerous characters escaped using fnameescape
function. %raw_title
inserts exact title that was used in :ZettelNew
. The configuration can look like this:
let g:zettel_format = "%y%m%d-%H%M-%title"
thanks!
I've added few new variable templates. I wanted to do this for quite some time, so thanks for the impulse! :)
Hello,
Thank you for developing this plugin. Would you be interested in considering my modification? It allows the filename to be appended with the title, and if there is no title passed it won't append it. It is just easier for me when I am searching my notes to give me more context into what the note was for.
If you would be interested in this modification, I can fine-tune it and add a global variable so this behaviour is user-set through a config variable.
Let me know your thoughts,