Improve note filename formatting options

Provide the user with the choice between:

"title" (default) - Title only
"uuid" - UUID only
"uuid-title" - Title prefixed by UUID
"title-uuid" - Title suffixed with UUID
This commit is contained in:
Ernie Miller
2022-05-12 09:28:52 -04:00
parent a2b4c28391
commit 2ff562480a
3 changed files with 54 additions and 29 deletions

View File

@@ -242,8 +242,12 @@ require('telekasten').setup({
-- markdown file extension
extension = ".md",
-- prefix file with uuid
prefix_title_by_uuid = false,
-- Generate note filenames. One of:
-- "title" (default) - Use title if supplied, uuid otherwise
-- "uuid" - Use uuid
-- "uuid-title" - Prefix title by uuid
-- "title-uuid" - Suffix title with uuid
new_note_filename = "title",
-- file uuid type ("rand" or input for os.date()")
uuid_type = "%Y%m%d%H%M",
-- UUID separator