- Add Command Palette (Ctrl+K / Cmd+K) with search and navigation - Add global keyboard shortcuts: g h (dashboard), g n (notes), n (new note) - Add keyboard shortcuts help dialog (?) - Add shortcuts provider component - Shortcuts ignore inputs/textareas for proper UX
17 lines
633 B
TypeScript
17 lines
633 B
TypeScript
export interface CommandItem {
|
|
id: string
|
|
label: string
|
|
description?: string
|
|
group: 'navigation' | 'actions' | 'search' | 'recent'
|
|
keywords?: string[]
|
|
action?: () => void
|
|
icon?: string
|
|
}
|
|
|
|
export const commands: CommandItem[] = [
|
|
{ id: 'nav-dashboard', label: 'Ir al Dashboard', group: 'navigation', keywords: ['home'] },
|
|
{ id: 'nav-notes', label: 'Ir a Notas', group: 'navigation', keywords: ['all notes'] },
|
|
{ id: 'nav-settings', label: 'Ir a Configuración', group: 'navigation', keywords: ['settings'] },
|
|
{ id: 'action-new', label: 'Crear nueva nota', group: 'actions', keywords: ['new note', 'create'] },
|
|
]
|