@rookery/searchProvides a full-text search interface for rookery ideas, as seen in rookery’s docsite, or one of these sites.
Ideas are ranked by name, by title, and by full text. This index can power a search modal or an inline filter panel.
#import "@rookery/core:0.1.0": rookery
#import "@rookery/search:0.1.0": search-bar, filter-panel
#show: rookery
/* Modal-based search bar with a limited number of ideas in the base view. */
#search-bar(placeholder: "Find a note", limit: 12)
/* Inline search panel with clickable pills as preset searches for certain tags. */
#filter-panel(tag: "todo", pills: ("ready", "blocked", "epic-jobs"))You can specify tags: when using the UX elements to narrow the search space at compile time:
#search-bar(tags: "phd", elem-id: "phd-index", placeholder: "phd notes")
#search-bar(tags: "trip", elem-id: "trip-index", placeholder: "trip notes")