Skip to content

Default file template incorrectly uses trim command #178

Open
@z2k-gwp

Description

Describe the bug

The default file template uses "trim" has a block identifier, which is not valid in Nunjucks. It is only a filter. You can see this by attempting to copy the default template directly into the plugin's settings field for customization and it will not accept the default as written. Removing the {% trim %} and {% endtrim %}` allows the default template to be usable.

PS - it sure would be nice to have the default template to just be actual default editable text. Right now, as soon as you make modifications in the plugin settings, it erases the default value - causing users to have to completely reconstruct the template from scratch.

Method of syncing

  • N/A

To Reproduce

  1. Go to plugin settings, type in the default file template and watch it turn red when you type {% trim %}

Expected behaviour

The default template text should not have a trim block.

Screenshots

  • N/A

Metadata

  • OS: Windows
  • Plugin version: latest
  • Obsidian version: latest

Metadata

Assignees

No one assigned

    Labels

    awaiting responseWaiting for response for fix or questionbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions