Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty line at beginning of journal entry with template #1641

Open
2 tasks done
drewma2k opened this issue Jan 24, 2025 · 0 comments
Open
2 tasks done

Empty line at beginning of journal entry with template #1641

drewma2k opened this issue Jan 24, 2025 · 0 comments
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@drewma2k
Copy link

drewma2k commented Jan 24, 2025

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.10.3

Neorg setup

require('neorg').setup({
	load = {
		["core.defaults"] = {},
		["core.concealer"] = {},
		['core.journal'] = {}
	}
})

Actual behavior

Extra line at the beginning of journal file when using template.

Expected behavior

The buffer is exactly the content of the template file.

Steps to reproduce

run :Neorg journal template

create single-line template

template

run :Neorg journal today
you will see the file:


template

note the extra line at the begging of the file.

Potentially conflicting plugins

No response

Other information

seems to be introduced by #1468.

Help

Yes, but I don't know how to start. I would need guidance (check question below)

Implementation help

Unsure how to resolve in a way that maintains metadata mentioned in #1468 if it is inserted into the buffer before the template

@drewma2k drewma2k added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Jan 24, 2025
@github-project-automation github-project-automation bot moved this to added-updated-reopened in sorting neorg issue tracker Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

1 participant