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
Context
Follow-up to #208 and its implementation in #209.
What should change?
Move the global command palette shortcut from
Cmd/Ctrl+PtoCmd/Ctrl+K.Cmd/Ctrl+Pmakes Hubble feel like a code editor.Cmd/Ctrl+Kbetter matches user expectations for a text-focused app and its command palette.Hyperlink behavior
Cmd/Ctrl+Kneeds context-sensitive behavior inside the rich-text editor, matching Notion:Today, pressing
Cmd/Ctrl+Kwith 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+Kopens the global palette when focus is outside the editor.Cmd/Ctrl+Kopens the global palette when the editor selection is empty.Cmd/Ctrl+Kopens/focuses hyperlink controls when editor text is selected, without opening the palette.Cmd/Ctrl+Khyperlink-creation behavior and shortcut-only supporting code are removed.Cmd/Ctrl+Pno longer opens the global palette.Context
Follow-up to #208 and its implementation in #209.