Skip to content

Commit

Permalink
fix: insert template at the end of a new journal entry (#1468)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Damsbo Lyngs <[email protected]>
  • Loading branch information
Dynge and Michael Damsbo Lyngs authored Jun 25, 2024
1 parent e5b67c2 commit f33a491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/journal/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module.private = {
and module.config.public.use_template
and module.required["core.dirman"].file_exists(workspace_path .. "/" .. folder_name .. "/" .. template_name)
then
vim.cmd("0read " .. workspace_path .. "/" .. folder_name .. "/" .. template_name .. "| w")
vim.cmd("$read " .. workspace_path .. "/" .. folder_name .. "/" .. template_name .. "| w")
end
end,

Expand Down

0 comments on commit f33a491

Please sign in to comment.