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

[Bug] Changelog update overwrites frontmatter #21

Open
tsievert opened this issue Jun 15, 2023 · 3 comments
Open

[Bug] Changelog update overwrites frontmatter #21

tsievert opened this issue Jun 15, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@tsievert
Copy link

I have a template for all my notes, including the changelog with some basic YAML at the beginning.
However, every update of the changelog gets completely rid of that.

I would be fine if all other parts of the template get overwritten, except for the frontmatter.

@badrbouslikhin
Copy link
Owner

@tsievert can you please post an example of your template and the part that you would like to keep unmodified?

@badrbouslikhin badrbouslikhin added the enhancement New feature or request label Jun 19, 2023
@tsievert
Copy link
Author

tsievert commented Jun 20, 2023

---
created_by: {{name}}
edited_by:
  - {{name}}
  - {{name}}
  - {{name}}
Created_at: <% tp.file.creation_date() %>
Modified_at: 
tags: 
  - {{tag1}}
  - {{tag2}}
alias: 
  - {{alias1}}
  - {{alias2}}
--- 

That's the template and the part I want to keep unmodified.
I just double checked and the behaviour still persists. Also manually saving the note does not prevent the bug.

Steps to reproduce:

  1. Create note with the template above
  2. Designate note as changelog location
  3. Make changes in another note
  4. Switch back to changelog
  5. Template is gone
  6. Add template again
  7. switch note and make some changes
  8. Switch back to changelog
  9. Template is gone again

@philoserf
Copy link

This plugin, as it is today, owns the whole file. It is rewritten in whole on each write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants