Settings commandPro
Workspace settings on one page: the search grows into a palette that flies to any setting (the row breathes twice), and an unsaved-changes bar counts edits, validates, saves or retries.
oxyn add settings-commandSettings
General
Your workspace
Agents
How agents run by default
Notifications
When we reach you
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Workspace settings people search more than they browse: "where do I turn off the digest?" The answer should be one keystroke away, and edits should be safe to undo before they're saved.
When not to use
- Search and run anything from one field: use Command palette instead.
- On or off for things that apply right away: use Switch instead.
- Pick one option in the text field's look: use Select instead.
Installation
Settings command is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add settings-commandUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Search
The palette finds Daily digest by its keyword.
Settings
General
Your workspace
Agents
How agents run by default
Notifications
When we reach you
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Page
The settings page; edit to see the bar.
Settings
General
Your workspace
Agents
How agents run by default
Notifications
When we reach you
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Retry
The first save fails with Retry.
Settings
General
Your workspace
Agents
How agents run by default
Notifications
When we reach you
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
SettingsCommand
| Prop | Type | Default | Description |
|---|---|---|---|
sectionsrequired | Vec<(String, String, String)> | — | Sections (id, label, one line). |
settingsrequired | Vec<Setting> | — | Settings. |
savedrequired | BTreeMap<String, SettingValue> | — | Saved values. |
suggested | Vec<String> | Default::default() | Ids offered before typing. |
title | String | "Settings" | Heading. |
save_ms | u32 | 900 | Simulated save time ms. |
fail_first | bool | Default::default() | The first save fails (to show Retry). |
open_query | Option<String> | Default::default() | Start with the palette open and this query. |
width | f32 | 640.0 | Width px. |
on_save | EventHandler<Vec<String>> | — | Saved (changed ids). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ⌘KorCtrlKor/ | Open the settings search |
| ↑or↓ | Move through results |
| Enter | Jump to the setting and focus its control |
| Esc | Close the palette |
Accessibility
- Each control is labelled by its setting and described by its hint or error.
- Edited rows carry a dot plus hidden "Edited" text; saves and errors are announced.
From the spec
Each control is labelled by its setting and described by its hint (or error, aria-invalid). Edited rows add hidden "Edited" text, not just a dot. Save results are announced.
Motion & interaction
The search field grows into the palette. Jumping scrolls smoothly and the target row breathes twice. The unsaved bar pops in; its label rolls as the count changes.
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Palette open | 260 ms | ease.out | 120 ms fade |
| Row breathe | 1.6 s, 2 pulses | ease.out | one 800 ms pulse |
| Bar in | 280 ms | ease.out | fade |
| Saved | 1.6 s visible | — | same |
Responsive behaviour
- 640 px wide by default; the section nav sits beside the scrolling page.
Edge cases (spec)
Text settings validate length and required. Saving with nothing changed is impossible (no bar). Very long setting lists scroll; the palette shows at most eight results.
Notes for AI
- Import
SettingsCommandfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - There is no GPUI version yet; use the Dioxus component.
- Props to set first:
sections,settings,saved. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.