Skip to content

Comments

🤖 feat: add F4 alternate command palette shortcut#2487

Open
ethanndickson wants to merge 1 commit intomainfrom
command-palette-4r6n
Open

🤖 feat: add F4 alternate command palette shortcut#2487
ethanndickson wants to merge 1 commit intomainfrom
command-palette-4r6n

Conversation

@ethanndickson
Copy link
Member

Summary

Adds a browser-safe alternate command-palette shortcut (F4) that opens directly in command mode with > prefilled, while preserving Cmd/Ctrl+Shift+P for default workspace-switch mode.

Background

Ctrl/Cmd+Shift+P can be intercepted in browser contexts (especially Firefox), which makes the palette harder to reach. Earlier alternate-shortcut work was removed due conflicts with other function keys, but the initialQuery plumbing remained in place.

Implementation

  • Added KEYBINDS.OPEN_COMMAND_PALETTE_ACTIONS bound to F4.
  • Updated App.tsx shortcut handling to use a single combined branch for both palette keybinds:
    • primary shortcut opens default mode
    • alternate shortcut opens with openCommandPalette(">")
  • Updated Settings keybind rendering to show alternate shortcut on the same row via KEYBIND_DISPLAY_ALTERNATES.
  • Updated onboarding command-palette tip to mention direct command-mode open.
  • Updated docs command-palette shortcut line to include F4.
  • Added unit test coverage for OPEN_COMMAND_PALETTE_ACTIONS key matching.

Validation

  • bun test src/browser/utils/ui/keybinds.test.ts
  • make typecheck
  • make lint
  • make static-check

Risks

Low risk. The change is scoped to keybinding registration/display and command-palette open wiring. Primary shortcut behavior remains unchanged.


Generated with mux • Model: openai:gpt-5.3-codex • Thinking: xhigh • Cost: $2.63

- add OPEN_COMMAND_PALETTE_ACTIONS bound to F4
- open command palette with ">" when alternate shortcut is used
- keep primary Ctrl/Cmd+Shift+P behavior unchanged
- show alternate shortcut on the same keybind row in Settings
- update onboarding tip and docs shortcut reference
- add keybind matcher test coverage for F4

---

_Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$2.63`_

<!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=2.63 -->
@ethanndickson
Copy link
Member Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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