fix: note naming issue (closes #134)

This commit is contained in:
lambtho12
2022-05-20 09:34:10 +02:00
parent 05464b31ed
commit 0180e38eab

View File

@@ -208,7 +208,7 @@ end
local function generate_note_filename(uuid, title)
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
return uuid .. sep .. title
elseif M.Cfg.new_note_filename == "title-uuid" then