mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 09:50:33 -04:00
3ed436de74
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? - Brand new hook APIs for registering shortcuts using tanstack hotkeys - Support for command menu injection when shortcut is added <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Centralized keyboard shortcuts system with per‑shortcut registration and per‑user enable/disable preferences stored locally * Added a "Copy results as Markdown" shortcut (Mod+Shift+M) * Shortcuts can be surfaced in the Command Menu with a visual shortcut badge for discoverability * **Documentation** * Legacy keyboard shortcut hooks marked as deprecated and documentation updated to point to the new shortcut API <!-- end of auto-generated comment: release notes by coderabbit.ai -->
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
export const COMMAND_MENU_SECTIONS = {
|
|
ACTIONS: 'Actions',
|
|
NAVIGATE: 'Navigate',
|
|
QUERY: 'Queries',
|
|
SUPPORT: 'Support',
|
|
TABLE: 'Table Editor',
|
|
SQL: 'SQL Editor',
|
|
DATABASE: 'Database',
|
|
INTEGRATIONS: 'Integrations',
|
|
SHORTCUTS: 'Shortcuts',
|
|
} as const
|