How about this? How to specify sorting for items not driven by bookmarks order? #134
-
Hi SebastianMC, I'm obsidian user of using your Plugin. Best wish, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @lpaiu technically, the Knowing the above technical aspect you can easily manipulate the sorting and change or extend it beyond the default behavior, if you are not discouraged by the need to write and modify the textual sorting specification by yourself. The starting point is the sorting configuration injected on-the-fly if bookmarks integration is enabled in settings: ---
sorting-spec: |
target-folder: /*
bookmarked:
< by-bookmarks-order
sorting: standard
--- The above configuration is not visible anywhere in your vault. When the above step works, you can start changing the order of non-bookmarked items by simply manipulating a single line in the The line to manipulate is To get the not bookmarked items (files and folders) ordered alphabetically, transform the line to For ordering by creation date use An example modified sorting specification in ---
sorting-spec: |
target-folder: /*
bookmarked:
< by-bookmarks-order
> advanced created
--- From this point, the way is open for more advanced specifications, for example - a different sorting per folder or per group of folders. Or you can insert (pin) some notes/folders above the ones sorted-by-bookmarks order, and so on. thank you for your input! |
Beta Was this translation helpful? Give feedback.
Hi @lpaiu
technically, the
custom-sort
plugin is driven by textual sorting specifications.The bookmarks integration is no exception from that rule. However, in this specific case, the textual sorting specification is created and consumed on-the-fly, automatically. That's why from the user perspective it behaves like config-free sorting.
Knowing the above technical aspect you can easily manipulate the sorting and change or extend it beyond the default behavior, if you are not discouraged by the need to write and modify the textual sorting specification by yourself.
The starting point is the sorting configuration injected on-the-fly if bookmarks integration is enabled in settings:
--- sort…