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
301 stars 23 forks source link

Custom sort for search results #176

Open xq114 opened 1 week ago

xq114 commented 1 week ago

This is a really nice plugin! However, it can only sort in file explorer now. Will it be hard to support custom sort in search results as well? (Now obsidian only supports sorting by file name/modified time/created time) Thanks!

SebastianMC commented 1 week ago

Hi @xq114

it looks like an excellent idea to also custom-sort the search results!

I didn't examine this area in details. At glance the main challenge is the plugin integration point. I believe there is no explicit plugin integration point exposed for sorting of search results. That means a developer would need to examine Obsidian internals (reverse engineering of internal code). And then, regardless of how the sorting is integrated, it will be error prone because of breaking changes introduced by Obsidian team regularly. In other words a high maintenance cost for the plugin, probably requiring frequent updates with each Obsidian major release and its breaking changes

I'm discouraged by my experience with custom-sort plugin - even now I'm struggling with fixing the problems resulting from breaking changes of Obsidian 1.7.2. That's the main reason why I'm putting this feature request on hold with future enhancement label.