Commit Graph

20 Commits

Author SHA1 Message Date
Ben Schlegel
50da33ea4d feat(search): add arrow key navigation (#442)
* feat(search): add arrow navigation

* chore: format

* refactor: simplify arrow navigation

* chore: remove comment

* feat: rework arrow navigation to work without state

* feat: make pressing enter work with arrow navigation

* fix: remove unused css class

* chore: correct comment

* refactor(search): use optional chaining
2023-09-03 09:32:46 -07:00
Ben Schlegel
53dd86727b fix(search): matches getting highlighted in title (#440) 2023-09-01 14:12:32 -07:00
Ben Schlegel
fa0629716f 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
2023-09-01 10:09:58 -07:00
Ben Schlegel
3233d5b08a Fix search bar after navigate (#424) 2023-08-26 17:19:45 -07:00
Jacky Zhao
57e9297173 format 2023-08-20 20:48:35 -07:00
Jacky Zhao
61d67c9057 fix: ctrl + k breaking after page nav 2023-08-20 20:47:07 -07:00
Jacky Zhao
303a867d60 base path refactor to better support subpath hosting 2023-08-19 15:52:25 -07:00
Jacky Zhao
a3cba52362 fix back button in spa not working between two pages that both have hash fragments 2023-08-17 01:34:50 -07:00
Jacky Zhao
b5ab38cb7e fix relative path resolution in router and link crawling 2023-08-16 22:04:15 -07:00
Jacky Zhao
7b9e986f2e include home page in search 2023-08-12 00:24:30 -07:00
Jacky Zhao
b62827a782 format, make search async 2023-08-12 00:03:11 -07:00
Jacky Zhao
617ea80db1 run prettier 2023-07-22 17:27:41 -07:00
Jacky Zhao
2c0f21a97d finish path refactoring, add sourcemap + better trace support 2023-07-15 23:02:12 -07:00
Jacky Zhao
ffb2c9ba57 base path refactor, more docs 2023-07-13 00:19:35 -07:00
Jacky Zhao
33c8c9c5f6 docs + various polish 2023-07-09 19:32:24 -07:00
Jacky Zhao
7e3781c6d0 fix popover zindex 2023-07-04 17:14:15 -07:00
Jacky Zhao
a90142ba2d more visual polish, adjust colours and spacing 2023-07-04 16:48:36 -07:00
Jacky Zhao
1547c8af0d fix indexing causing main thread freeze, various polish 2023-07-04 10:08:32 -07:00
Jacky Zhao
fc03f3dcec fix: parsing wikilinks that have codeblock anchors, scroll to anchor 2023-06-19 22:50:25 -07:00
Jacky Zhao
1c7b5c88d8 basic search implementation 2023-06-19 20:37:45 -07:00