use double quotes in notifications

remotes/origin/HEAD
pseudometa 2022-12-06 22:19:28 +01:00
parent 8000d20e2c
commit 251feac157
1 changed files with 3 additions and 3 deletions

View File

@ -62,13 +62,13 @@ local function fileOp(op)
if op == "duplicate" then
cmd {cmd = "saveas", args = {filepath}}
cmd {cmd = "edit", args = {filepath}}
vim.notify(" Duplicated '" .. oldName .. "' as '" .. newName .. "'. ")
vim.notify(' Duplicated "' .. oldName .. '" as "' .. newName .. '". ')
elseif op == "rename" then
local success, errormsg = os.rename(oldName, newName)
if success then
cmd {cmd = "edit", args = {filepath}}
cmd("bdelete #")
vim.notify(" Renamed '" .. oldName .. "' to '" .. newName .. "'. ")
vim.notify(' Renamed "' .. oldName .. '" to "' .. newName .. '". ')
else
vim.notify(" Could not rename file: " .. errormsg, logError)
end
@ -158,7 +158,7 @@ function M.trashFile(opts)
if success then
cmd [[bdelete]]
vim.notify(" '" .. filename .. "' deleted. ")
vim.notify(' "' .. filename .. '" deleted. ')
else
vim.notify(" Could not delete file: " .. errormsg, logError)
end