Skip to content

Use Cmd+K for the command palette and selected-text links #220

Description

@bholmesdev

What should change?

Move the global command palette shortcut from Cmd/Ctrl+P to Cmd/Ctrl+K.

Cmd/Ctrl+P makes Hubble feel like a code editor. Cmd/Ctrl+K better matches user expectations for a text-focused app and its command palette.

Hyperlink behavior

Cmd/Ctrl+K needs context-sensitive behavior inside the rich-text editor, matching Notion:

  • With a non-empty text selection, open/focus the hyperlink UI for that selection.
  • With no text selected, open the global palette.

Today, pressing Cmd/Ctrl+K with an empty editor selection starts hyperlink creation. Remove that behavior and the code/UI state used only by the empty-selection shortcut flow. Existing-link editing should continue to work.

Acceptance criteria

  • Cmd/Ctrl+K opens the global palette when focus is outside the editor.
  • Cmd/Ctrl+K opens the global palette when the editor selection is empty.
  • Cmd/Ctrl+K opens/focuses hyperlink controls when editor text is selected, without opening the palette.
  • The empty-selection Cmd/Ctrl+K hyperlink-creation behavior and shortcut-only supporting code are removed.
  • Cmd/Ctrl+P no longer opens the global palette.
  • Menu accelerators, shortcut hints, tests, and user-facing copy reflect the new binding.

Context

Follow-up to #208 and its implementation in #209.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-discussionOpen product or technical questions; discuss on the issue before implementing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions