obsidian-sample-plugin/src/utils
SebastianMC fe4f28b46b
74 integration with bookmarks core plugin (#84)
* #74 - Integration with Bookmarks core plugin and support for indirect drag & drop arrangement

- added new plugin setting to enable auto-integration with bookmarks
- full integration with standard sorting at folder level and at sorting group level
- refined support for implicit sorting for bookmarks plugin integration
- documentation update (partial, sketchy)
- context menu for 'bookmark this' and 'bookmark+siblings' for sorting
- order of bookmarked siblings reflects the current sorting in File Explorer, whatever it is (!!!)
- handler for 'changed' event of the vault to reflect files/folders locations change in the bookmarks automatically, whenever applicable
- adjusted behavior of by-bookmark-comparator to adhere to the multi-level sorting support implemented in #89 and merged recently to this branch. Basically, each comparator is responsible only for its own comparison and should no fallback into other default comparisons - instead it should return 0, which indicates item which are equal from the perspective of the comparator
- adjusted bookmarks integration to the merged from master multi-level sorting support and its implications
- fix suggested by github code check
- advanced performance optimizations: bookmarks cache finetuning, switching to Obsidian sort code if the implicit bookmark-integration sorting spec is in effect for a folder and there are no bookmarked items in the folder
- update of treatment of whitespace in parent path extraction: spaces allowed as leading/trailing in path elements
- increased coverage of the new functionality with unit tests
- basic manual tests done
- next step: real-life usage tests
2023-10-21 23:16:30 +02:00
..
Bookmarks Core Plugin integration design.md 74 integration with bookmarks core plugin (#84) 2023-10-21 23:16:30 +02:00
BookmarksCorePluginSignature.spec.ts 74 integration with bookmarks core plugin (#84) 2023-10-21 23:16:30 +02:00
BookmarksCorePluginSignature.ts 74 integration with bookmarks core plugin (#84) 2023-10-21 23:16:30 +02:00
ObsidianIconFolderPluginSignature.ts Simplification of this.app ==> app - this is a globally exposed object 2023-08-23 23:47:41 +02:00
StarredPluginSignature.ts Simplification of this.app ==> app - this is a globally exposed object 2023-08-23 23:45:30 +02:00
utils.spec.ts 74 integration with bookmarks core plugin (#84) 2023-10-21 23:16:30 +02:00
utils.ts 74 integration with bookmarks core plugin (#84) 2023-10-21 23:16:30 +02:00