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

[FR]: Bookmark children + children sibling + auto-update #108

Open Mara-Li opened 8 months ago

Mara-Li commented 8 months ago

Hello! I will love to the plugin allow me to recreate my folder tree in the bookmark, so I can sort it directly without add it manually.

The settings will allow to add all file into bookmarks in one click.

More over, when a file is created, directly bookmark so I can move it freely.

SebastianMC commented 8 months ago

Hi @Lisandra-dev

thanks for your input! Your suggestions sound reasonable, let me recap them with my comments for clarity:

  1. Ability to recreate the entire Vault folders tree in bookmarks, with one click or one command
    • for large vaults this could be an overkill, let the user decide if s/he wants to use it
    • an operation to be performed once (or rarely), hence exposing it in context menu doesn't seem to be the best option
    • exposing it as a command in commands palette - looks like the way to go
    • at the same time I can imagine executing the function on a subtree of folders - in that case the context menu would be more appropriate than a command
    • technically implementation is trivial, given the framework created within the plugin with 2.0.2 release
    • let's wait for more feedback for 2.0.2 release of the plugin
  2. Auto-update of bookmarks-for-sorting when files and folders are created, added or imported
    • seems like a candidate for plugin setting, a new checkbox (toggle) in settings pane
    • there are several ways to use the bookmarks integration for sorting and the auto-update must consider and handle all of them correctly. This can be tricky.
    • in a folder, no items, or only some items can be bookmarked-for-sorting (intentionally), or all items can be bookmarked-for-sorting. This can represent various usage patterns
    • implementation is potentially complex and still doesn't guarantee that all files are captured correctly (mostly due to edge cases)
    • probably the solution is a new plugin setting (a toggle) enabling the all-or-nothing simplistic approach. It would cover only the most 'greedy' scenario, when the user wants to keep the bookmarks-for-sorting structure 1:1 automatically reflecting vault folders tree
    • in 2.0.2 version of the plugin, scenarios of items removal and rename/move are already handled, in a simple reasonable way (e.g. when you move an item between folders in File Explorer, the item disappears from bookmarks-for-sorting, yet is not added automatically in target location mirror in bookmarks)

To sum it up:

Let's wait for more user feedback for bookmarks integration. At the same time I need to sleep with the new suggestions, they are tempting and they can be an overkill at the same time.

Mara-Li commented 8 months ago

You resumed well my suggestion ❤️! It is exactly that!