Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
juh2 opened this issue Dec 19, 2020 · 2 comments
Open

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

juh2 opened this issue Dec 19, 2020 · 2 comments
Labels
discussion Discuss practices & share information documentation Add tutorial or documentation

Comments

@juh2
Copy link

juh2 commented Dec 19, 2020

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
Copy link
Owner

EFLS commented Dec 20, 2020

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
Copy link
Owner

EFLS commented Dec 20, 2020

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.

@EFLS EFLS added discussion Discuss practices & share information documentation Add tutorial or documentation labels Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discuss practices & share information documentation Add tutorial or documentation
Projects
None yet
Development

No branches or pull requests

2 participants