Command palette example#147
Open
Railly wants to merge 2 commits into
Open
Conversation
…mented A task list where every action is a palette command: Cmd+Shift+P (the keyboard-shortcuts docs' exact example id) toggles it, typing filters static and per-task commands, Enter runs the selection, and plain ArrowUp/Down navigate the list while focus stays in the query field. The arrow navigation is pure userland over the edit-derivation seam: single-line fields stamp unmodified vertical arrows as caret start/end move_caret edits, and the core reinterprets those as list navigation in its palette_edit arm. No runtime changes, no key fallback. Verified live through the automation harness on the current main.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… index, and changelog
Railly
force-pushed
the
feat/command-palette-example
branch
from
July 18, 2026 00:42
ae1e6a3 to
19117ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The keyboard-shortcuts docs call an
openCommandPalette()that existed nowhere in the tree. This example implements it: a task app where Cmd+Shift+P opens the palette, typing filters static and per-task commands, and Enter runs the selection.ArrowUp/Down navigation is pure userland: the v0.5.2 edit-derivation seam stamps vertical arrows in single-line fields as
move_caretedits, and the core reads those as list navigation. No runtime changes. Verified through the automation harness on current main;scripts/gate.sh fast origin/mainis green.Known gap: no screen-reader announcement when arrowing through results; candidate SDK-level follow-up.
Screenshot