Skip to content

Commit f33a491

Browse files
DyngeMichael Damsbo Lyngs
and
Michael Damsbo Lyngs
authored
fix: insert template at the end of a new journal entry (#1468)
Co-authored-by: Michael Damsbo Lyngs <[email protected]>
1 parent e5b67c2 commit f33a491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neorg/modules/core/journal/module.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module.private = {
142142
and module.config.public.use_template
143143
and module.required["core.dirman"].file_exists(workspace_path .. "/" .. folder_name .. "/" .. template_name)
144144
then
145-
vim.cmd("0read " .. workspace_path .. "/" .. folder_name .. "/" .. template_name .. "| w")
145+
vim.cmd("$read " .. workspace_path .. "/" .. folder_name .. "/" .. template_name .. "| w")
146146
end
147147
end,
148148

0 commit comments

Comments
 (0)