EFLS/zetteldeft

Hints to regexp in documentation. Changing zetteldeft-id-regex

juh2 opened this issue · 2 comments

juh2 commented

Hi, I would like too change zetteldeft-id-format like this:

Zetteldeft Id Format: %Y-%m-%d-%H%M%S

to be able to change more names in a minute.

I have no idea how to change zetteldeft-id-regex to work with the new timestamp.

Zetteldeft Id Regex: [0-9]{4}(-[0-9]{2,}){3}

Any hints? And is it possible to extend the documentation so that users get an idea how to change this value?

TIA
juh

EFLS commented

There already is some documentation in 2.2.6 in literate source code.

More importantly: the default regex should work for your usecase as well, if I remember correctly (i.e., with a timestamp including the minutes).

Are you running into specific issues?

EFLS commented

Another tip: if you want to play around with regex'es and see what works, you can fire up (re-builder). Paste in the original value of zetteldeft-id-regex and try to modify it so that it matches examples in your buffer.