AppCommandBar

App

Keyboard-first command palette. Opens with ⌘K; an items prop accepts custom commands while a default navigation/actions/recent set is included.

Varsayılan komutlar (açık panel)

Preview
Esc
↑↓ Navigate Select Esc Close
Code
<%- include('modules/app/AppCommandBar') %>

Özel items + trigger butonu

Preview
Code
<%- include('modules/app/AppCommandBar', {
  placeholder: 'Search commands…',
  items: [
    { icon: 'fa-solid fa-basket-shopping', label: 'View Orders',   shortcut: 'G O', category: 'Navigation', href: '/orders' },
    { icon: 'fa-solid fa-box',             label: 'Inventory',     shortcut: 'G I', category: 'Navigation', href: '/inventory' },
    { icon: 'fa-solid fa-tag',             label: 'New Sale',      shortcut: 'C N', category: 'Actions' },
    { icon: 'fa-solid fa-file-export',     label: 'Export Report', shortcut: 'C E', category: 'Actions' },
    { icon: 'fa-solid fa-clock-rotate-left', label: 'Order #1042',      category: 'Recent', href: '/orders/1042' },
    { icon: 'fa-solid fa-clock-rotate-left', label: 'Customer: Acme Co', category: 'Recent', href: '/customers/acme' },
  ]
}) %>

Fuzzy search + özel gruplar

Preview
Esc
↑↓ Navigate Select Esc Close
Code
<%- include('modules/app/AppCommandBar', {
  placeholder: 'Try "kbd", "asgn" or "rls"…',
  items: [
    { icon: 'fa-solid fa-keyboard',            label: 'Open Keyboard Shortcuts',  shortcut: '?',   category: 'Help',        keywords: ['kbd'] },
    { icon: 'fa-solid fa-book',                label: 'Browse Documentation',     shortcut: 'G H', category: 'Help' },
    { icon: 'fa-solid fa-bell',                label: 'Notification Preferences', shortcut: 'G N', category: 'Preferences' },
    { icon: 'fa-solid fa-screwdriver-wrench',  label: 'Assign Reviewer to PR-42', shortcut: 'A R', category: 'Workflows',   keywords: ['asgn'] },
    { icon: 'fa-solid fa-rocket',              label: 'Release & Tag v1.4.0',     shortcut: 'R T', category: 'Workflows',   keywords: ['rls'] },
  ]
}) %>
Source modules/app/CommandPalette/CommandPalette.ejs