franciskafieh / obsidian-list-modified

🪨 The advanced and adaptive changelog for Obsidian. Links all modified files meeting certain criteria to a timed (daily, weekly, monthly) note.
96 stars 7 forks source link

Cannot find my daily notes #7

Closed ScottKillen closed 2 years ago

ScottKillen commented 2 years ago

The date format in my daily notes settings is 'YYYY/MM-MMMM/YYYY-MM-DD'

This causes the plugin to warn that no daily file with this name exists.

franciskafieh commented 2 years ago

@ScottKillen could you try using using 'YYYY[/]MM-MMMM[/]YYYY-MM-DD'? ofc remove the quotes...

as in the following: image

I need to update the description of that setting. It should say to put anything that is not a date format into square brackets.

LMK if that works! Thanks for reporting!

franciskafieh commented 2 years ago

I pushed a description change that should make it a little more clear... might change this setting in the future, but it's an easy fix, so not a big priority

ScottKillen commented 2 years ago

Thank for looking at this.

So I used 'YYYY[/]MM-MMMM[/]YYYY-MM-DD' instead and got the same error.

Would it be possible to read the Daily Note setting?

franciskafieh commented 2 years ago

Thank for looking at this.

So I used 'YYYY[/]MM-MMMM[/]YYYY-MM-DD' instead and got the same error.

Would it be possible to read the Daily Note setting?

I'm very busy atm, but I'll try to look into this tmr if I have time

franciskafieh commented 2 years ago

Hey @ScottKillen!

I am taking a quick glance before I go to sleep. In a new vault, having YYYY/MM-MMMM/YYYY-MM-DD in the 'Daily Note Format' field actually does locate files using the following format:

image

For me (on latest build), the problem is rather image

Will have to take a look tmr. probably an easy fix

franciskafieh commented 2 years ago

Edit: found a fix! Just need to return if cache === undefined || cache.links === undefined... god I hate javascript

other than that, it seems to be working for me

franciskafieh commented 2 years ago

Really sorry for comment spam, but I released a new version 0.0.2. Please try downloading it and see if it fixes your issue!

On this version, I cannot reprod. the bug you have reported

here is the result: image

with these settings: image YYYY/MM-MMMM/YYYY-MM-DD

and

image exact same format, YYYY/MM-MMMM/YYYY-MM-DD

let me know if this fixes it. otherwise, could you provide [vault file path]/.obsidian/plugins/obsidian-list-modified/data.json and [vault file path]/.obsidian/daily-notes.json please?

thanks so much!

ScottKillen commented 2 years ago

That worked.

Thanks!

ScottKillen commented 2 years ago

Forgot to say. I love this plugin!