LostPaul / obsidian-folder-notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
https://lostpaul.github.io/obsidian-folder-notes/
GNU Affero General Public License v3.0
264 stars 11 forks source link

Incorrect Child Note used for folder name in File Explorer with Front Matter Title integration #64

Closed dljsjr closed 7 months ago

dljsjr commented 7 months ago

After a recent update (not sure when), I noticed that the folder names in the file explorer when using the front matter title integration started to show the wrong note title.

It appears that the repro is based on alphabetical sorting:

When using "Inside the folder" storage, if a folder contains a note that has a front matter title override, and this note is before the folder note in the sort order, then that note's title will be used for the folder.

Here's an example clip I made in an empty sandbox vault (w/ folder note hiding disabled):

CleanShot 2023-11-09 at 08 16 39

LostPaul commented 7 months ago

Should be fixed now, that's not the reason for the bug though. I happened because I changed the way of how it checks if it is the folder note to fix a other bug.