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

Breaks frontmatter in daily notes when 'day planner heading' is empty in settings #625

Closed
2 of 6 tasks
willschetelich opened this issue Nov 11, 2024 · 8 comments
Closed
2 of 6 tasks
Labels
bug Something isn't working

Comments

@willschetelich
Copy link

willschetelich commented Nov 11, 2024

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Usually, when I 'drag and drop' on the timeline, day planner appends the text to the end of my daily note, not affecting anything else in my daily note.

Thanks so much for the help!!!!!!

Current behaviour

Now, whenever I drag and drop, it affects the rest of my daily note, messing with my YAML!

Steps to reproduce

Picture 1: My daily note when I have just created it, using a template.
Screenshot 2024-11-11 at 10 13 38 AM
Screenshot 2024-11-11 at 10 14 02 AM

Picture 2: When I drag and drop in the timeline one time!

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.7.5

Possible solution

I believe the problem has to do with it adding '***' at the start of my daily note! Messing with front matter!

@willschetelich willschetelich added the bug Something isn't working label Nov 11, 2024
@willschetelich
Copy link
Author

PS - I love your plugin, it has helped me so much!!!

@willschetelich
Copy link
Author

UPDATE! SOLVED IT!
Just had to add

Day Planner

to my daily notes template!! Thanks!!!

@willschetelich
Copy link
Author

Screenshot 2024-11-11 at 10 37 15 AM

Just add it to the template!

@yanqing-song
Copy link

yanqing-song commented Nov 14, 2024

I have the same problem too.
Besides, it messes up embedded file links when drag and drop. I have underscores _ in linked file names. A backslash is added before each underscore, it becomes \_ and the links are all invalid.

@wenruoxu
Copy link

Yes, I also encountered the same problem.

@ivan-lednev ivan-lednev changed the title Drag+Drop messing with YAML Front Matter? Breaks frontmatter in daily notes when 'day planner heading' is empty in settings Nov 17, 2024
@ivan-lednev
Copy link
Owner

@yanqing-song, this is a different issue. Please create another one and add to it the markdown that gets broken on edits.

@ivan-lednev
Copy link
Owner

A temporary fix is disabling automatic sorting of entries on edits.

@ivan-lednev
Copy link
Owner

ivan-lednev commented Nov 18, 2024

Fixed in 0.26.2. Please update and re-check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants