Title: Add a search box to the Settings → Keyboard Shortcuts page by DragonnZhang · Pull Request #59 · modelstudioai/openwork · GitHub
Open Graph Title: Add a search box to the Settings → Keyboard Shortcuts page by DragonnZhang · Pull Request #59 · modelstudioai/openwork
X Title: Add a search box to the Settings → Keyboard Shortcuts page by DragonnZhang · Pull Request #59 · modelstudioai/openwork
Description: Closes #58
What & why
OpenWork's Settings → Keyboard Shortcuts page (ShortcutsPage.tsx) renders
every shortcut — the registry-driven actions grouped by category plus three
component-specific sections — for ~30 rows across many sections, with no way to
filter them. Finding "the toggle-theme shortcut" or "everything that uses ⇧"
meant scrolling and scanning the whole list.
Comparable desktop apps make their shortcut reference searchable: the Codex app's
Settings → Keyboard Shortcuts has "keypress search", and VS Code / Claude
keybindings both put a search box at the top. OpenWork's settings navigator
already got a search box (#40); the denser shortcuts list was the conspicuous
remaining un-filterable settings surface.
This adds a search box at the top of the Shortcuts page that filters the rows by
both the action label and the rendered key combination:
typing theme narrows to the theme shortcut (label match);
typing shift (or ⇧) narrows to every shortcut that uses Shift (keypress
search — it matches the key tokens, not just labels);
sections with no remaining rows are hidden;
a "No results found" empty state shows when nothing matches;
a clear (✕) button and Esc reset the query;
styling mirrors the existing settings-navigator search (icon, clear button,
focus ring) for consistency.
Frontend-only. The page is a pure renderer view over the centralized action
registry (actionsByCategory + useActionRegistry().getHotkeyDisplay), so
filtering is client-side React state — no backend / qwen-code change. No new
i18n keys: the placeholder reuses common.search, the empty state
common.noResultsFound, and the clear button common.clear.
Changes
pages/settings/ShortcutsPage.tsx — builds a flat, filterable section
model from the registry (skipping hotkey-less actions) + the component-specific
sections; adds the search input, label+key-token filtering, empty state, and
clear/Esc handling.
pages/settings/SettingsNavigator.tsx — adds
data-testid="settings-item-
Open Graph Description: Closes #58 What & why OpenWork's Settings → Keyboard Shortcuts page (ShortcutsPage.tsx) renders every shortcut — the registry-driven actions grouped by category plus three component-specifi...
X Description: Closes #58 What & why OpenWork's Settings → Keyboard Shortcuts page (ShortcutsPage.tsx) renders every shortcut — the registry-driven actions grouped by category plus three component...
Opengraph URL: https://github.com/modelstudioai/openwork/pull/59
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:826ec017-2846-5cd0-5c01-c8de6fb13378 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D196:1D8AAD:30DF00:412657:6A52CBDC |
| html-safe-nonce | 2ffcc40719cb29636341a360a57b0279128738300ce586ec4e815838064aa060 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTk2OjFEOEFBRDozMERGMDA6NDEyNjU3OjZBNTJDQkRDIiwidmlzaXRvcl9pZCI6IjcxOTYwMDIyODY3MjY1NDMwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 715c60ac2e0a09f92cccfcf00b37fa47ad997e54c34fafb256e3060fe9a48b05 |
| hovercard-subject-tag | pull_request:3993746200 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelstudioai/openwork/pull/59/files |
| twitter:image | https://avatars.githubusercontent.com/u/52599892?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/52599892?s=400&v=4 |
| og:image:alt | Closes #58 What & why OpenWork's Settings → Keyboard Shortcuts page (ShortcutsPage.tsx) renders every shortcut — the registry-driven actions grouped by category plus three component-specifi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelstudioai/openwork git https://github.com/modelstudioai/openwork.git |
| octolytics-dimension-user_id | 283556804 |
| octolytics-dimension-user_login | modelstudioai |
| octolytics-dimension-repository_id | 1256697754 |
| octolytics-dimension-repository_nwo | modelstudioai/openwork |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1256697754 |
| octolytics-dimension-repository_network_root_nwo | modelstudioai/openwork |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width