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

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

Open juh2 opened 3 years ago

juh2 commented 3 years ago

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 3 years ago

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 3 years ago

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.