feat(template): capitalize title and shorttitle

This commit is contained in:
Thomas Lambert
2023-01-25 23:17:35 +01:00
parent db45a161ad
commit 9c02367a2e

View File

@@ -660,9 +660,9 @@ local function linesubst(line, title, dates, uuid)
end end
local substs = vim.tbl_extend("error", dates, { local substs = vim.tbl_extend("error", dates, {
shorttitle = shorttitle, shorttitle = shorttitle:gsub("^%l", string.upper),
uuid = uuid, uuid = uuid,
title = title, title = title:gsub("^%l", string.upper),
}) })
for k, v in pairs(substs) do for k, v in pairs(substs) do