mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix: note naming issue (closes #134)
This commit is contained in:
@@ -208,7 +208,7 @@ end
|
|||||||
|
|
||||||
local function generate_note_filename(uuid, title)
|
local function generate_note_filename(uuid, title)
|
||||||
local sep = M.Cfg.uuid_sep or "-"
|
local sep = M.Cfg.uuid_sep or "-"
|
||||||
if not M.Cfg.new_note_filename == "uuid" and #title > 0 then
|
if M.Cfg.new_note_filename ~= "uuid" and #title > 0 then
|
||||||
if M.Cfg.new_note_filename == "uuid-title" then
|
if M.Cfg.new_note_filename == "uuid-title" then
|
||||||
return uuid .. sep .. title
|
return uuid .. sep .. title
|
||||||
elseif M.Cfg.new_note_filename == "title-uuid" then
|
elseif M.Cfg.new_note_filename == "title-uuid" then
|
||||||
|
|||||||
Reference in New Issue
Block a user