Files
recall/src/lib/command-items.ts
Daniel Arroyo cde0a143a5 feat: MVP-5 Sprint 2 - Command Palette and Global Shortcuts
- 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
2026-03-22 18:22:28 -03:00

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'] },
]