Skip to content

fix(app): prefer cmd+k for command palette#18731

Merged
nexxeln merged 2 commits intodevfrom
fix/app-command-palette-cmd-k
Mar 23, 2026
Merged

fix(app): prefer cmd+k for command palette#18731
nexxeln merged 2 commits intodevfrom
fix/app-command-palette-cmd-k

Conversation

@nexxeln
Copy link
Member

@nexxeln nexxeln commented Mar 23, 2026

summary

  • make the session search affordance show Cmd+K by making it the primary keybind for the command palette
  • keep Cmd+P working as a secondary shortcut so existing muscle memory still works
  • update e2e and keybind coverage for the new primary shortcut and legacy alias

testing

  • bun test:e2e -- app/palette.spec.ts
  • bun test:e2e -- settings/settings-keybinds.spec.ts -g "changing command palette keybind works"

@nexxeln nexxeln requested a review from adamdotdevin as a code owner March 23, 2026 07:40
@nexxeln nexxeln enabled auto-merge (squash) March 23, 2026 07:42
Copy link

@atharvau atharvau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review - PR #18731

Summary

This PR changes the command palette keybind from to as primary, with as fallback.

✅ Positive Findings

  • Good UX improvement: is more standard for command palettes (VS Code, GitHub, etc.)
  • Backward compatibility: Keeps as secondary keybind
  • Test coverage: Added E2E test for both keybinds
  • Consistent implementation: Updates both keybind logic and tests

🔍 Code Quality

  • Clean changes: Minimal, focused modifications
  • Good test coverage: Both E2E and unit tests updated
  • Proper parameterization: Made function more flexible

⚠️ Minor Observations

  • The new test logic assumes prefers the first combo - this behavior should be documented or made more explicit in the implementation
  • Consider adding a comment explaining the keybind precedence logic

✅ Security & Performance

  • No security concerns
  • No performance impact
  • Changes are UI-only

Recommendation: APPROVE

This is a straightforward UX improvement with proper testing. The code is clean and maintains backward compatibility.

Copy link

@atharvau atharvau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review - PR #18731

Summary

This PR changes the command palette keybind from cmd+p to cmd+k as primary, with cmd+p as fallback.

Positive Findings

  • Good UX improvement: cmd+k is more standard for command palettes (VS Code, GitHub, etc.)
  • Backward compatibility: Keeps cmd+p as secondary keybind
  • Test coverage: Added E2E test for both keybinds
  • Consistent implementation: Updates both keybind logic and tests

Code Quality

  • Clean changes: Minimal, focused modifications
  • Good test coverage: Both E2E and unit tests updated
  • Proper parameterization: Made openPalette function more flexible

Minor Observations

  • The new test logic assumes formatKeybind prefers the first combo - this behavior should be documented
  • Consider adding a comment explaining the keybind precedence logic

Security & Performance

  • No security concerns
  • No performance impact
  • Changes are UI-only

Recommendation: APPROVE

This is a straightforward UX improvement with proper testing. The code is clean and maintains backward compatibility.

Copy link

@atharvau atharvau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVED - Good UX improvement with proper testing.

Strengths:

  • Follows macOS conventions (cmd+k is common for command palettes)
  • Maintains backward compatibility with cmd+p as secondary binding
  • Includes proper E2E test coverage
  • Updates test helpers appropriately
  • Adds test for formatKeybind preference behavior

Minor Suggestion:

  • Consider documenting this keybind change in migration notes if users are accustomed to cmd+p

The implementation is solid and well-tested.

Copy link

@atharvau atharvau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Sensible Keybinding Update

Good change to move the file open dialog to a more intuitive keybinding.

Improvements:

  • Better UX: is more common for command palettes across editors
  • Maintains compatibility: still works as fallback
  • Proper testing: Added E2E test for the fallback
  • Smart display: shows primary shortcut (Cmd+K) in UI

Code Quality:

  • Clean implementation with proper test coverage
  • Follows existing patterns in the codebase
  • Good separation between primary and secondary shortcuts

Minor note: The test name "search palette also opens with cmd+p" could be clearer as "search palette opens with secondary cmd+p shortcut"

Approved - This improves discoverability and follows common conventions.

Copy link

@atharvau atharvau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sensible Keybinding Update

Good change moving file open dialog to more intuitive Cmd+K while maintaining Cmd+P fallback. Includes proper E2E testing and smart display logic showing primary shortcut in UI.

Implementation is clean with good test coverage following existing codebase patterns.

Minor note: Test name could be clearer about being the secondary shortcut.

Approved - improves discoverability following common conventions.

@nexxeln nexxeln merged commit 0f5626d into dev Mar 23, 2026
8 checks passed
@nexxeln nexxeln deleted the fix/app-command-palette-cmd-k branch March 23, 2026 08:00
burn2delete pushed a commit to burn2delete/symbolic that referenced this pull request Mar 24, 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.

2 participants