AndrewUsher / AndrewUsher/andrewusher.dev

Add command palette (Cmd+K) with filtered search

未关闭
#331 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
1
派生
0
平均合并
2 天 5 小时
30 天内合并 PR
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 摘要。