mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
feat(template): capitalize title and shorttitle
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user