SebastianMC / obsidian-custom-sort

Take full control over the order and sorting of folders and notes in File Explorer in Obsidian
GNU General Public License v3.0
302 stars 23 forks source link

Support `Outside Folder, with Same Name` mode for Folder Notes #109

Open SebastianMC opened 1 year ago

SebastianMC commented 1 year ago

Originally posted by @joellti in https://github.com/SebastianMC/obsidian-custom-sort/issues/53#issuecomment-1793564754

Can you please support Outside Folder, with Same Name mode from https://github.com/aidenlx/alx-folder-note/wiki/folder-note-pref as well. All my notes are currently in this mode and I don't want to convert to other modes since it brings other benefits. Thx a lot.

SebastianMC commented 2 months ago

A remark for potential implementation: by definition, if target-folder: is not included, the sorting specification applies to the folder in which the note lives. That means, there could be an expectation for the sorting spec contained in the folder note in mode Outside Folder, with Same Name to apply it not to the enclosing folder but to the relevant subfolder.

I don't have an idea how to approach this in a non-confusing way. The implementation should probably follow standard rules and not make any exception and thus become not-so-convenient in this particular scenario. Typically putting sorting spec in 'folder note' frees you from specifying target-folder: thus making the sort spec more concise.