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

feat: support multi-line values in metagen #1514

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

benlubas
Copy link
Contributor

Allow things like this:

["core.esupports.metagen"] = {
  config = {
    undojoin_updates = true,
    type = "empty",
    template = {
      { "title" },
      { "description" },
      { "authors", "[\n  benlubas\n  Zlare\n]" },
    }
  },
},

which generates:

@document.meta
title: test1
description: 
authors: [
  benlubas
  Zlare
]
@end

This was requested in the discord by @zlare

@vhyrro vhyrro merged commit 321c435 into nvim-neorg:main Jul 16, 2024
4 of 6 checks passed
@benlubas benlubas deleted the push-wxmkrruxqxyt branch July 16, 2024 11:52
@benlubas benlubas mentioned this pull request Jul 16, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants