diff --git a/lua/telekasten.lua b/lua/telekasten.lua index a597ae0..9625ce4 100644 --- a/lua/telekasten.lua +++ b/lua/telekasten.lua @@ -272,7 +272,9 @@ local function check_dir_and_ask(dir, purpose) .. " Shall I create it? ", }, function(answer) if answer == "Yes" then - if Path:new(dir):mkdir({ parents=true, exists_ok = false }) then + if + Path:new(dir):mkdir({ parents = true, exists_ok = false }) + then vim.cmd('echomsg " "') vim.cmd('echomsg "' .. dir .. ' created"') ret = true @@ -2257,7 +2259,6 @@ local function FollowLink(opts) end if search_mode == "files" then - -- check if subdir exists local filepath = title:match("(.*/)") or "" filepath = M.Cfg.home .. "/" .. filepath diff --git a/lua/telekasten/utils.lua b/lua/telekasten/utils.lua index 4110db5..35dc4f0 100644 --- a/lua/telekasten/utils.lua +++ b/lua/telekasten/utils.lua @@ -13,7 +13,7 @@ function M.prompt_title(ext, defaultFile, callback) prompt = "Title: ", cancelreturn = canceledStr, completion = "file", - default = defaultFile + default = defaultFile, }, function(title) if not title then title = ""