-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Incorrect daily notes retrieved from filename templates that generate subdirectories #21
Comments
Hi @ardunster, thanks for doing the digging! I am embarrassingly behind on the calendar plugin bug reports but I'm not sure this is the issue. Both periodic notes and the calendar plugin intentionally only look at the basename for disambiguating dates. There was a long discussion here about why, but the TL;DR is that some users keep their notes in nested directories within their daily note folder and even archive older notes each month. There have been a lot of other issues and requests since that decision was made to make it support different workflows though, including I think the better fix is probably:
I'll try to play around with this on the weekend. |
Hi, I'd like to poke this issue as I encountered a related problem. I have my daily notes folder with files having the |
I had the same issue configuring Obsidian "date format" of "Daily notes" with "YYYY/MM/DD". When I dig in the code, I understand why:
We can notice that it will recursively parse the folder (value in "new file location") which is not the folder inlucindg the date time as this part was added in the "Daily note" part , in my case "new file location" = "content/diary/" and "daily note = "YYYY/MM/DD" and that it only focus on the day. The workaround I found to mitigate this issue, is to add years and month to my filename using this variable in "daily note" = Hope my 2 cents will help to fix it. |
@liamcain any news regarding this? It's still broken for people who have a directory structure like: |
Is the dev still working on this? |
A couple of us have reported issues on the
obsidian-calendar-plugin
repo (Issue 216 and Issue 184 ) related to the Calendar plugin placing notes incorrectly when they are generated using a template that creates subdirectories.I tracked this down I think to this call here:
obsidian-daily-notes-interface/src/parse.ts
Line 51 in a9d90f2
Because
file.basename
is only the part of the file after the final/
, it does not account for subdirectory structure inside the template folder at all.Maybe this would be a quick fix for someone more familiar with the codebase? If not, I could fork it and take a stab at it, but I have not done any development for Obsidian and would have to figure out how to set up an environment, etc.
The text was updated successfully, but these errors were encountered: