AndrewUsher / AndrewUsher/andrewusher.dev

Add command palette (Cmd+K) with filtered search

Offen
#331 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
1
Forks
0
Ø Merge
2 T. 5 Std.
Gemergte PRs (30 T.)
59

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.