You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 refactor: make command palette a workspace switcher by default
Make the command palette primarily a workspace switcher while keeping all
commands accessible via prefix keys. This focuses the palette on the most
common use case (switching workspaces) without sacrificing functionality.
**Changes:**
- Default view shows only workspace commands (switch, create, rename, etc.)
- Type `>` prefix to see all commands across all sections
- Type `/` prefix for slash commands (existing behavior)
- Updated placeholder text to reflect new behavior
**Code quality improvements:**
- Extracted repeated state reset logic into `resetPaletteState()` helper
- Exported command section names as `COMMAND_SECTIONS` constant
- Removed unused `searchQuery` variable
- Updated documentation and Storybook stories
**Documentation:**
- Added command palette section to docs/keybinds.md explaining three modes
- Updated Storybook story with accurate feature descriptions
_Generated with `cmux`_
Copy file name to clipboardExpand all lines: docs/keybinds.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,16 @@ When documentation shows `Ctrl`, it means:
54
54
| Open command palette |`Ctrl+Shift+P`|
55
55
| Toggle sidebar |`Ctrl+P`|
56
56
57
+
### Command Palette
58
+
59
+
The command palette (`Ctrl+Shift+P`) is primarily a **workspace switcher** by default:
60
+
61
+
-**Default**: Shows only workspace commands (switch, create, rename, etc.)
62
+
-**`>` prefix**: Shows all commands (navigation, chat, modes, projects, etc.)
63
+
-**`/` prefix**: Shows slash command suggestions for inserting into chat
64
+
65
+
This design keeps the palette focused on the most common use case (workspace switching) while still providing quick access to all commands when needed.
66
+
57
67
## Tips
58
68
59
69
-**Vim-inspired navigation**: We use `J`/`K` for next/previous navigation, similar to Vim
0 commit comments