Ben Schlegel
2023-09-01 90dac31216b5d3f59e65ec5778e21a308a744e11
refs
author Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Friday, September 1, 2023 17:09 +0000
committer GitHub <noreply@github.com>
Friday, September 1, 2023 17:09 +0000
commit90dac31216b5d3f59e65ec5778e21a308a744e11
tree d3cb75c55648e4d468684f0c72f7f3d1c6c412b9 tree | zip | gz
parent 2d6dc176c3e1fbb520a5da1beb60bbb1d8e948ba view | diff
feat: Implement search for tags (#436)

* Quartz sync: Aug 29, 2023, 10:17 PM

* style: add basic style to tags in search

* feat: add SearchType + tags to search preview

* feat: support multiple matches

* style(search): add style to matching tags

* feat(search): add content to preview for tag search

* fix: only display tags on tag search

* feat: support basic + tag search

* refactor: extract common `fillDocument`, format

* feat: add hotkey to search for tags

* chore: remove logs

* fix: dont render empty `<ul>` if tags not present

* fix(search-tag): make case insensitive

* refactor: clean `hideSearch` and `showSearch`

* feat: trim content similar to `description.ts`

* fix(search-tag): hotkey for windows

* perf: re-use main index for tag search
2 files modified
201 ■■■■ changed files
quartz/components/scripts/search.inline.ts 163 ●●●● diff | view | raw | blame | history
quartz/components/styles/search.scss 38 ●●●●● diff | view | raw | blame | history