Skip to content

Command palette example#147

Open
Railly wants to merge 2 commits into
mainfrom
feat/command-palette-example
Open

Command palette example#147
Railly wants to merge 2 commits into
mainfrom
feat/command-palette-example

Conversation

@Railly

@Railly Railly commented Jul 18, 2026

Copy link
Copy Markdown
Member

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_caret edits, and the core reads those as list navigation. No runtime changes. Verified through the automation harness on current main; scripts/gate.sh fast origin/main is green.

Known gap: no screen-reader announcement when arrowing through results; candidate SDK-level follow-up.

Screenshot

image

…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.
@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
native-sdk Ready Ready Preview, Comment Jul 18, 2026 12:43am

@Railly Railly changed the title Command palette example: the keyboard-shortcuts docs' openCommandPalette(), implemented Command palette example Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant