chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.48k stars 135 forks source link

[BUG] Capture error: file not found #612

Open chaw61 opened 9 months ago

chaw61 commented 9 months ago

Capture will correctly create the file and use the correct template if the file does not exist, but it will not capture more text to the note, producing the following: QuickAdd: (ERROR) /Fleeting/19-11-2023.md not found

The file does exist and it shows up in the Calendar and in the file list.

It makes no difference whether a template is used or whether or not Templetar is enabled.

Could it be related to the date format I use (day-month-year) because capture works fine with the Workbench note (Workbench.md).

LoydRoad commented 7 months ago

I have exactly the same error, capture can create the file but cannot retrieve it. My format is : /review/daily/{{date:YYYY-MM-DD}}

LoydRoad commented 7 months ago

I found out how to fix this issue, it is because of the leading "/" and maybe the function "getAbstractFileByPath" changed his behaviour

I have removed it from the settings, going from "/review/daily/{{date:YYYY-MM-DD}}" to "review/daily/{{date:YYYY-MM-DD}}", and now it is working fine

@chaw61 : I guess you can do the same and remove the / in front of "Fleeting" in your settings