Closed Sirs0ri closed 1 year ago
@Sirs0ri Can you update to the latest version and confirm if you are still having issues? In the meantime, I have marked this as a critical bug.
Yes, this still happens in the latest version: obsidian v1.1.16, installer 1.1.9, obsidian-leaflet 5.5.3
Here's a test vault with examples (in Testfolder/): obsidian-test.zip
(The vault also includes an example for the problem reported in #361)
Thanks for the response and vault inclusion for both issues. :) We'll see what we can do.
A look at the code shows me that this was introduced with #350, which in fact introduced a limit to how deep Obsidian scans that hasn't been documented.
As a workaround, more slashes can be added to the markerFolder parameter (eg, markerFolder: "Testfolder/////"
for a scan-depth of 5 subfolders deep), but I'd appreciate a more user friendly solution, and I'm hoping we can find one out in the discussion for the PR that introduced the change!
In the meantime, I don't think this has to be marked as "critical" anymore, since there's a workaround! :)
@valentine195 I know you are out of town this weekend, but what do you think about depth of relevant paths as part of documentation examples?
I commented this on #350 but I didn’t think this PR through fully before merging. I will probably end up reverting the depth, or making it optional.
Update: there's a workaround, see this comment below!
Description of the problem
The update to 5.3.0 broke the ability to create markers from all notes inside a folder, including subfolders. The documentation mentions it should "search through all of the notes in the specified folder, even in sub folders", which was the case before the update. However since 5.3.0, only the specified folder is checked, and subfolders are ignored.
Steps to reproduce
leaflet
codeblock to let it render, you should now see a marker for the "Test" noteleaflet
codeblock to let it refresh, you should no longer see a marker for the "Test" noteExpected / observed behavior
markerFolder
specified, all noted inside that folder and its subfolders should be scanned for location data, and be displayed on the map.General Info
Obsidian version: v1.1.16 Last working version of this plugin: 5.2.6 Content of the "Test.md" note, mentioned in step 2 above: