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

Feature: integration with the new core plugin 'Bookmarks' - incl. its drag & drop to allow config-less custom sorting #74

Closed SebastianMC closed 8 months ago

SebastianMC commented 1 year ago

The 1.2.0 (insider) release of Obsidian introduces a new Bookmarks core plugin.\ It is a much more more robust incarnation of the Starred core plugin, a replacement for the latter in the long perspective.\ It allows to organise the bookmarked items (files, folders, headers and more) in a hierarchical fashion thanks to the concept of virtual bookmark groups.\ Manipulation of the bookmarks hierarchy is done via drag & drop and - thanks to the separation of concerns - the drag & drop allows only reordering the items within the bookmarks collection, and it doesn't allow actually moving files between folders. Confusion between these two drag & drop modes eliminated by design.\ The Bookmarks plugin exposes the collected bookmarks (e.g. for integration with other plugins) retaining their internal hierarchy!

This opens a whole new possibility to this Custom Sort plugin to allow sorting by indirect drag & drop in Bookmarks view!

Plugin integration phases:

  1. Expose a new bookmarked: keyword, an equivalent of the existing starred: keyword
  2. Introduce new (default) sorting within the bookmarked: items, which should reflect their relative order arranged by the user in the Bookmarks view
  3. Expose a new plugin setting Automatic integration with Bookmarks. It would work at global level without any need to create sortspec files or sorting specifications. An idea of on-the-fly sorting specification comprising only the bookmarked: keyword for each folder in the vault, if at least any item from the folder is bookmarked