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
255 stars 19 forks source link

Some target-folder: get ignored when sorting specs are read from two or more notes #58

Closed SebastianMC closed 1 year ago

SebastianMC commented 1 year ago

As a side effect of debugging #56 I captured an issue with regexp-based target-folder: being ignored if the sorting spec is read from multiple notes.

Debugging revealed a bug of ignoring parts of previously parsed sorting specifications.

Need to improve the logic.

This piece of logic is not covered by unit tests because of complexity.

Bug introduced in 1.6.0 with the addition of target-folder: by name matching (non-regexp version)