Skip to content

feat(palette): find individual settings and open the page at them - #7415

Open
reachjalil wants to merge 1 commit into
devfrom
feat/palette-finds-individual-settings
Open

reachjalil wants to merge 1 commit into
devfrom
feat/palette-finds-individual-settings

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What is this about?

The command palette (Cmd/Ctrl+K) now finds individual settings, not only settings pages, and opens the page at the setting you picked.

What problem does it solve?

Someone who knows the name of one option had to guess its page and scan it. Long pages such as Advanced make that slow.

What was the situation before?

Searching "show workspace run mode", "language" or "notifications" found nothing. Computer use and Devices were not listed. "devices" returned MCP servers and "keep awake" returned Updates.

How is this implemented?

  • settings-search-index.ts lists 18 settings across Preferences, Appearance, Updates and Advanced, offered only on the systems that show them.
  • A result opens /settings/<tab>/<anchor>. LayoutSectionItem anchor marks the row; useRevealSetting scrolls it into view, focuses it and outlines it briefly.
  • buildCommandPaletteSettingsItems lists the same pages as the settings sidebar.
  • rankPaletteItems: items that contain every typed word win. Matching letters in order applies only when nothing contains the words, so typos still work. Separators in a pasted menu path count as spaces.
  • No feature flag: every setting was already reachable; this makes the existing search find it.

What else changed?

  • The ranking change applies to every palette result, not only settings.
  • The Advanced engine section is listed as "OpenCode engine", matching its page heading.

Release note

Cmd/Ctrl+K finds individual settings such as Theme, Language or Keep awake, and opens the page at them.

Evidence

No E2E; apps/app/tests/command-palette-settings-search.test.ts and typecheck. Before: "show workspace run mode" finds nothing; after: one result, which opens Advanced at that setting.

Design: S6, V6

@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Nov 14, 2026 1:02am UTC
2 Skipped Deployments
Project Deployment Actions Updated
openwork-den Skipped Skipped Nov 14, 2026 1:02am UTC
openwork-landing Skipped Skipped Nov 14, 2026 1:02am UTC

Request Review

Cmd/Ctrl+K knew settings pages and Advanced sections, not the settings
inside a page: "language", "notifications" or "show workspace run mode"
found nothing. Computer use and Devices were missing although the settings
sidebar lists them, and items that only shared scattered letters with the
query ("devices" finding MCP servers) buried or replaced real matches.

- Index 18 settings across Preferences, Appearance, Updates and Advanced
  (settings-search-index.ts), offered only on the systems that show them.
- A result opens /settings/<tab>/<anchor>: the row scrolls into view,
  takes focus and is outlined briefly (LayoutSectionItem anchor,
  useRevealSetting). The anchor survives the redirect that adds the
  workspace to the path.
- List the same pages as the settings sidebar, including Computer use on
  desktop and Devices.
- Items that contain every typed word win. Matching letters in order only
  applies when nothing contains the words, so typos still find something.
  Separators in a pasted menu path are read as spaces.
- The Advanced engine section is listed under its page heading,
  "OpenCode engine".

No feature flag: every setting was already reachable; this makes the
existing search find it.

Signed-off-by: Jalil <reachjalil@gmail.com>
@reachjalil
reachjalil force-pushed the feat/palette-finds-individual-settings branch from d32f779 to 4bd2c5a Compare November 14, 2026 01:01
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing November 14, 2026 01:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-den November 14, 2026 01:01 Inactive

This branch was successfully deployed

1 active and 2 inactive deployments
Preview – openwork-app — 4bd2c5ab Deployed Nov 14, 2026 by vercel[bot]
Preview – openwork-landing — 4bd2c5ab Deployed Nov 14, 2026 by vercel[bot]
Preview – openwork-den — 4bd2c5ab Deployed Nov 14, 2026 by vercel[bot]
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