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

Allow sorting specification also in plugin settings (and/or in the body of notes), not only in YAML frontmatter. #125

Open SebastianMC opened 10 months ago

SebastianMC commented 10 months ago

The recent introduction of note properties editor in Obsidian has an impact on user experience with editing the sorting spec in YAML frontmatter.

I received a series of comments on that. I'm also struggling with the Obsidian properties editor when it comes to editing the sorting specification. I'm switching to source mode of editor actually.

In the issue #121 reported recently the problem was that the actual sorting spec was not visible (hidden in/by the Obsidian properties editor).

There are many options of potential improvements in this area. I'm considering two of them:

  1. Expose a text field in plugin settings window and allow editing the sorting spec there.

    • this approach would be especially helpful for newcomers, there could be the button 'create basic sorting spec' which would (pre)populate the text field, etc.
    • it seems to be relatively easy to be implemented
  2. Allow entering the sorting specification also in the body of notes.

    • could be tricky to do it in a way which doesn't have impact on overall performance
    • see relevant discussion in Obsidian dataview ticket #811
    • this ticket could contain useful tech details - maybe Obsidian cache already exposes snippets of notes (e.g. by a specific header) which can be consumed directly, w/o the need to parse notes in the custom-sort plugin?

The plan: