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

assign a unique identifier to each zettel #35

Open
icornelius opened this issue Sep 29, 2022 · 1 comment
Open

assign a unique identifier to each zettel #35

icornelius opened this issue Sep 29, 2022 · 1 comment

Comments

@icornelius
Copy link
Collaborator

Currently zetteln have no unique identifier other than their path. Zetteln created with --name timestamp have a unique numerical string in the filename (because timestamp is printed in the format YYYYMMDDHHMMSS) and this string can be called with zfind, providing queries guaranteed to return a single file. But filenames lacking the 14-digit timestamp can be more difficult to call uniquely with zfind queries.

Publication workflows and cross-references between notes would be easier if zettel were configured to generate a uuid for each new document and write the uuid to the metadata block. Ideally, there would also be an option to retroactively add uuids to documents lacking them.

@icornelius
Copy link
Collaborator Author

timestamp is adequate, for now. The main drawback is the length of the character string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant