mirror of
https://github.com/quartz-community/search.git
synced 2026-07-22 02:50:25 +00:00
Subscribe to the content-index-updated CustomEvent and incrementally add newly-patched entries to the FlexSearch index. The existing indexInitialized memoization is preserved -- no full rebuild, just additive inserts via index.addAsync(), plus updates to idDataMap, contentData, and allTags. This enables runtime extension of the search index by other plugins. The primary consumer is @quartz-community/encrypted-pages, which patches the resolved fetchData object with decrypted entries from its shadow content index and dispatches content-index-updated so users can find and open decrypted pages via search within the same browser session. Non-fatal: the listener swallows errors from the in-place fetchData read and continues with whatever content-index data was loaded originally.
763 B
763 B
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[Unreleased]
Added
-
Listen for
content-index-updatedCustomEventdispatches and incrementally add the new entries to the FlexSearch index. This enables runtime extension of the search index by other plugins — in particular@quartz-community/encrypted-pages, which patches the in-memory content index with newly-decrypted unlisted pages and dispatches this event so the user can find and open those pages via search within the same browser session. -
Initial Quartz community plugin template.