AndrewUsher / AndrewUsher/andrewusher.dev

Add command palette (Cmd+K) with filtered search

オープン
#331 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
1
フォーク
0
平均マージ
2日 5時間
マージ済み PR(30日)
59

説明

Pagefind already indexes everything (integrations/pagefind.mjs) but the current SearchDropdown is pretty basic.

I'd like a proper command palette:
- open with Cmd+K / Ctrl+K and `/`, close with Esc, trap focus properly
- search posts, projects, tags, and pages in one place with grouping
- filters: by tag, by year, by reading time (re-use logic from src/lib/tags.ts and src/lib/calculateReadingTime.ts)
- keyboard navigation with arrow keys, Enter to go, and recent searches stored in localStorage
- replace SearchDropdown.tsx in Header.astro for both desktop and mobile nav
- log search analytics so I know what people can't find

Look at how Linear and Algolia do it. Keep it fast, no extra JS until the palette opens.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。